diff --git a/Models/Client.php b/Models/Client.php index d77adf4..763ae60 100644 --- a/Models/Client.php +++ b/Models/Client.php @@ -31,8 +31,93 @@ use Modules\Profile\Models\Account; */ class Client extends Account { + private $number = 0; + + private $numberReverse = 0; + + private $status = 0; + + private $type = 0; + + private $taxId = ''; + + private $info = ''; + + private $createdAt = null; + public function __construct(int $id = 0) { + $this->createdAt = new \DateTime('now'); + parent::__construct($id); } + + public function getNumber() : int + { + return $this->number; + } + + public function setNumber(int $number) /* : void */ + { + $this->number = $number; + } + + public function getReverseNumber() + { + return $this->numberReverse; + } + + public function setReverseNumber($rev_no) /* : void */ + { + if(!is_scalar($rev_no)) { + throw new \Exception(); + } + + $this->numberReverse = $rev_no; + } + + public function getStatus() : int + { + return $this->status; + } + + public function setStatus(int $status) /* : void */ + { + $this->status = $status; + } + + public function getType() : int + { + return $this->type; + } + + public function setType(int $type) /* : void */ + { + $this->type = $type; + } + + public function getTaxId() : string + { + return $this->taxId; + } + + public function setTaxId(string $taxId) /* : void */ + { + $this->taxId = $taxId; + } + + public function getInfo() : string + { + return $this->info; + } + + public function setInfo(string $info) /* : void */ + { + return $this->info; + } + + public function getCreatedAt() : \DateTime + { + return $this->createdAt; + } }