Debug
This commit is contained in:
parent
03e54b382b
commit
f196c38fbe
1 changed files with 17 additions and 17 deletions
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
/**
|
||||
* Classe ClientBudgetsValidate.class.php
|
||||
* Classe CompaniesBudgetsValidate.class.php
|
||||
* @filesource
|
||||
* @autor Kenio de Souza
|
||||
* @copyright Copyright 2024 - Souza Consultoria Tecnológica
|
||||
|
|
@ -23,13 +23,13 @@ class CompaniesBudgetsCommissionsValidate
|
|||
private $Main = null;
|
||||
private $errors = array();
|
||||
private $info = null;
|
||||
private $clientBudgetsCommissionsId = null;
|
||||
private $companiesBudgetsCommissionsId = null;
|
||||
private $commissionValuePaid = null;
|
||||
private $commissionDatePaid = null;
|
||||
private $usersIdConfirm = null;
|
||||
private $dateStart = null;
|
||||
private $dateEnd = null;
|
||||
private $clientsId = null;
|
||||
private $companyId = null;
|
||||
private $usersId = null;
|
||||
private $inputs = null;
|
||||
|
||||
|
|
@ -43,14 +43,14 @@ class CompaniesBudgetsCommissionsValidate
|
|||
}
|
||||
|
||||
/** Método trata campo companies_budgets_commissions_id */
|
||||
public function setclientBudgetsCommissionsId(int $clientBudgetsCommissionsId) : void
|
||||
public function setCompaniesBudgetsCommissionsId(int $companiesBudgetsCommissionsId) : void
|
||||
{
|
||||
|
||||
/** Trata a entrada da informação */
|
||||
$this->clientBudgetsCommissionsId = isset($clientBudgetsCommissionsId) ? (int)$this->Main->antiInjection($clientBudgetsCommissionsId) : null;
|
||||
$this->companiesBudgetsCommissionsId = isset($companiesBudgetsCommissionsId) ? (int)$this->Main->antiInjection($companiesBudgetsCommissionsId) : null;
|
||||
|
||||
/** Verifica se a informação foi informada */
|
||||
if(empty($this->clientBudgetsCommissionsId))
|
||||
if(empty($this->companiesBudgetsCommissionsId))
|
||||
{
|
||||
|
||||
/** Adição de elemento */
|
||||
|
|
@ -171,12 +171,12 @@ class CompaniesBudgetsCommissionsValidate
|
|||
}
|
||||
|
||||
|
||||
/** Método retorna campo clientBudgetsCommissionsId */
|
||||
public function getClientBudgetsCommissionsId() : ? int
|
||||
/** Método retorna campo CompaniesBudgetsCommissionsId */
|
||||
public function getCompaniesBudgetsCommissionsId() : ? int
|
||||
{
|
||||
|
||||
/** Retorno da informação */
|
||||
return (int)$this->clientBudgetsCommissionsId;
|
||||
return (int)$this->CompaniesBudgetsCommissionsId;
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -198,19 +198,19 @@ class CompaniesBudgetsCommissionsValidate
|
|||
|
||||
}
|
||||
|
||||
/** Método trata campo clients_id */
|
||||
public function setClientsId(int $clientsId) : void
|
||||
/** Método trata campo Companiess_id */
|
||||
public function setcompanyId(int $companyId) : void
|
||||
{
|
||||
|
||||
/** Trata a entrada da informação */
|
||||
$this->clientsId = $clientsId > 0 ? (int)$this->Main->antiInjection($clientsId) : 0;
|
||||
$this->companyId = $companyId > 0 ? (int)$this->Main->antiInjection($companyId) : 0;
|
||||
|
||||
/** Verifica se a informação foi informada */
|
||||
if($this->clientsId ==0)
|
||||
if($this->companyId ==0)
|
||||
{
|
||||
|
||||
/** Adição de elemento */
|
||||
array_push($this->errors, 'O cliente deve ser informado');
|
||||
array_push($this->errors, 'O companiese deve ser informado');
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -271,12 +271,12 @@ class CompaniesBudgetsCommissionsValidate
|
|||
|
||||
}
|
||||
|
||||
/** Método retorna campo clients_id */
|
||||
public function getClientsId() : ? int
|
||||
/** Método retorna campo Companiess_id */
|
||||
public function getcompanyId() : ? int
|
||||
{
|
||||
|
||||
/** Retorno da informação */
|
||||
return (int)$this->clientsId;
|
||||
return (int)$this->companyId;
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue