Atualizando Produtos company
This commit is contained in:
parent
3d4125d1f9
commit
9c93aa3835
1 changed files with 10 additions and 10 deletions
|
|
@ -1,29 +1,29 @@
|
|||
<?php
|
||||
/**
|
||||
* Classe ClientsValidate.class.php
|
||||
* Classe CompaniesValidate.class.php
|
||||
* @filesource
|
||||
* @autor Kenio de Souza
|
||||
* @copyright Copyright 2022 - Souza Consultoria Tecnológica
|
||||
* @package vendor
|
||||
* @subpackage controller/clients
|
||||
* @subpackage controller/Companies
|
||||
* @version 1.0
|
||||
* @date 23/01/2022
|
||||
*/
|
||||
|
||||
|
||||
/** Defino o local onde esta a classe */
|
||||
namespace vendor\controller\clients;
|
||||
namespace vendor\controller\companies;
|
||||
|
||||
/** Importação de classes */
|
||||
use vendor\model\Main;
|
||||
|
||||
class ClientsValidate
|
||||
class CompaniesValidate
|
||||
{
|
||||
/** Declaro as variavéis da classe */
|
||||
private $Main = null;
|
||||
private $errors = array();
|
||||
private $info = null;
|
||||
private $clientsId = null;
|
||||
private $CompaniesId = null;
|
||||
private $usersId = null;
|
||||
private $companyId = null;
|
||||
private $clientName = null;
|
||||
|
|
@ -60,14 +60,14 @@ class ClientsValidate
|
|||
}
|
||||
|
||||
/** Método trata campo clients_id */
|
||||
public function setClientsId(int $clientsId) : void
|
||||
public function setCompanyId(int $CompanyId) : void
|
||||
{
|
||||
|
||||
/** Trata a entrada da informação */
|
||||
$this->clientsId = isset($clientsId) ? $this->Main->antiInjection($clientsId) : 0;
|
||||
$this->CompanyId = isset($CompanyId) ? $this->Main->antiInjection($CompanyId) : 0;
|
||||
|
||||
/** Verifica se a informação foi informada */
|
||||
if($this->clientsId < 0)
|
||||
if($this->CompanyId < 0)
|
||||
{
|
||||
|
||||
/** Adição de elemento */
|
||||
|
|
@ -532,11 +532,11 @@ class ClientsValidate
|
|||
}
|
||||
|
||||
/** Método retorna campo clients_id */
|
||||
public function getClientsId() : ? int
|
||||
public function getCompanyId() : ? int
|
||||
{
|
||||
|
||||
/** Retorno da informação */
|
||||
return (int)$this->clientsId;
|
||||
return (int)$this->CompanyId;
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue