diff --git a/vendor/controller/financial_entries/FinancialEntriesValidate.class.php b/vendor/controller/financial_entries/FinancialEntriesValidate.class.php index 27afd51..7102c2b 100644 --- a/vendor/controller/financial_entries/FinancialEntriesValidate.class.php +++ b/vendor/controller/financial_entries/FinancialEntriesValidate.class.php @@ -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 {