Files

121 lines
2.8 KiB
PHP

<?php
namespace App\Classes\Modules\Companies\DataTransferObjects;
use App\Classes\General\Interfaces\DataTransferObject;
use App\Models\Company;
class CompanyInfoObject implements DataTransferObject
{
/** @var Company */
private $company;
/** @var string */
private $unifiedSocialCreditIdentifier;
/** @var string */
private $businessRegistrationNumber;
/** @var string */
private $type;
/** @var string */
private $legalRepresentative;
/** @var string */
private $lastYearInspection;
/** @var string */
private $dateEstablishment;
/** @var string */
private $operationPeriod;
/**
* CompanyInfoObject constructor.
* @param Company $company
* @param string $unifiedSocialCreditIdentifier
* @param string $businessRegistrationNumber
* @param string $type
* @param string $legalRepresentative
* @param string $lastYearInspection
* @param string $dateEstablishment
* @param string $operationPeriod
*/
public function __construct(Company $company, string $unifiedSocialCreditIdentifier, string $businessRegistrationNumber, string $type, string $legalRepresentative, string $lastYearInspection, $dateEstablishment, string $operationPeriod)
{
$this->company = $company;
$this->unifiedSocialCreditIdentifier = $unifiedSocialCreditIdentifier;
$this->businessRegistrationNumber = $businessRegistrationNumber;
$this->type = $type;
$this->legalRepresentative = $legalRepresentative;
$this->lastYearInspection = $lastYearInspection;
$this->dateEstablishment = $dateEstablishment;
$this->operationPeriod = $operationPeriod;
}
/**
* @return Company
*/
public function getCompany(): Company
{
return $this->company;
}
/**
* @return string
*/
public function getUnifiedSocialCreditIdentifier(): string
{
return $this->unifiedSocialCreditIdentifier;
}
/**
* @return string
*/
public function getBusinessRegistrationNumber(): string
{
return $this->businessRegistrationNumber;
}
/**
* @return string
*/
public function getType(): string
{
return $this->type;
}
/**
* @return string
*/
public function getLegalRepresentative(): string
{
return $this->legalRepresentative;
}
/**
* @return string
*/
public function getLastYearInspection(): string
{
return $this->lastYearInspection;
}
/**
* @return string
*/
public function getDateOfEstablishment(): string
{
return $this->dateEstablishment;
}
/**
* @return string
*/
public function getOperationPeriod(): string
{
return $this->operationPeriod;
}
}