mirror of
https://github.com/Karaka-Management/oms-ClientManagement.git
synced 2026-02-09 05:18:43 +00:00
Implement base client getter/setter
This commit is contained in:
parent
1991d9a2d8
commit
1d2f7489a8
|
|
@ -31,8 +31,93 @@ use Modules\Profile\Models\Account;
|
||||||
*/
|
*/
|
||||||
class Client extends 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)
|
public function __construct(int $id = 0)
|
||||||
{
|
{
|
||||||
|
$this->createdAt = new \DateTime('now');
|
||||||
|
|
||||||
parent::__construct($id);
|
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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user