Atualizando companies_budgets_finanacial_entries.php
This commit is contained in:
parent
e0e8d93e35
commit
d103e6b19b
1 changed files with 3 additions and 31 deletions
|
|
@ -25,8 +25,7 @@ class FinancialEntriesValidate
|
|||
private $info = null;
|
||||
private $financialEntriesId = null;
|
||||
private $companyId = null;
|
||||
private $clientsId = null;
|
||||
private $usersId = null;
|
||||
private $userId = null;
|
||||
private $financialAccountsId = null;
|
||||
private $financialCategoriesId = null;
|
||||
private $description = null;
|
||||
|
|
@ -83,30 +82,12 @@ class FinancialEntriesValidate
|
|||
|
||||
}
|
||||
|
||||
/** Método trata campo clients_id */
|
||||
public function setClientsId(int $clientsId) : void
|
||||
{
|
||||
|
||||
/** Trata a entrada da informação */
|
||||
$this->clientsId = isset($clientsId) ? $this->Main->antiInjection($clientsId) : null;
|
||||
|
||||
/** Verifica se a informação foi informada */
|
||||
if(empty($this->clientsId))
|
||||
{
|
||||
|
||||
/** Adição de elemento */
|
||||
array_push($this->errors, 'O campo "Cliente", deve ser selecionado');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/** Método trata campo users_id */
|
||||
public function setUsersId(int $usersId) : void
|
||||
public function setUsersId(int $userId) : void
|
||||
{
|
||||
|
||||
/** Trata a entrada da informação */
|
||||
$this->usersId = isset($usersId) ? $this->Main->antiInjection($usersId) : null;
|
||||
$this->usersId = isset($userId) ? $this->Main->antiInjection($userId) : null;
|
||||
|
||||
/** Verifica se a informação foi informada */
|
||||
if(empty($this->usersId))
|
||||
|
|
@ -331,15 +312,6 @@ class FinancialEntriesValidate
|
|||
|
||||
}
|
||||
|
||||
/** Método retorna campo clients_id */
|
||||
public function getClientsId() : ? int
|
||||
{
|
||||
|
||||
/** Retorno da informação */
|
||||
return (int)$this->clientsId;
|
||||
|
||||
}
|
||||
|
||||
/** Método retorna campo users_id */
|
||||
public function getUsersId() : ? int
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue