Implement base client getter/setter

This commit is contained in:
Dennis Eichhorn 2017-03-03 07:54:03 +01:00
parent 1991d9a2d8
commit 1d2f7489a8

View File

@ -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;
}
}