add: company module classes. #7

This commit is contained in:
weichien00
2021-07-08 01:47:58 +08:00
parent 13988d1021
commit 45077c953e
3 changed files with 121 additions and 0 deletions
@@ -0,0 +1,54 @@
<?php
namespace App\Classes\Modules\Companies\DataTransferObjects;
use App\Classes\General\Interfaces\DataTransferObject;
class CompanyModuleObject implements DataTransferObject
{
/** @var int */
private $companyId;
/** @var int|null */
private $type;
/** @var int|null */
private $status;
/**
* CompanyObject constructor.
* @param int $companyId
* @param int|null $type
* @param int|null $status
*/
public function __construct(int $companyId, int $type, int $status)
{
$this->companyId = $companyId;
$this->type = $type;
$this->status = $status;
}
/**
* @return int
*/
public function getCompanyId(): int
{
return $this->companyId;
}
/**
* @return int
*/
public function getType(): int
{
return $this->type;
}
/**
* @return int
*/
public function getStatus(): int
{
return $this->status;
}
}