mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-30 18:03:59 +00:00
Create company info table, insert data into company info, update companyResource when businessType is online shop
This commit is contained in:
@@ -0,0 +1,120 @@
|
||||
<?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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user