Files
exchange-2.0/app/Classes/Modules/Companies/DataTransferObjects/ModuleObject.php
T
2020-12-07 16:35:00 +08:00

44 lines
683 B
PHP

<?php
namespace App\Classes\Modules\Companies\DataTransferObjects;
use App\Models\Company;
class ModuleObject
{
/** @var Company */
private $company;
/** @var int */
private $type;
/**
* ModuleObject constructor.
* @param Company $company
* @param int $type
*/
public function __construct(Company $company, int $type)
{
$this->company = $company;
$this->type = $type;
}
/**
* @return Company
*/
public function getCompany(): Company
{
return $this->company;
}
/**
* @return int
*/
public function getType(): int
{
return $this->type;
}
}