mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 12:33:56 +00:00
56 lines
1.1 KiB
PHP
56 lines
1.1 KiB
PHP
<?php
|
|
|
|
namespace App\Classes\Modules\Companies\DataTransferObjects;
|
|
|
|
use App\Classes\General\Interfaces\DataTransferObject;
|
|
use App\Classes\ValueObjects\Constants\BusinessType;
|
|
|
|
class CompanyProfileObject implements DataTransferObject
|
|
{
|
|
/** @var string */
|
|
private $email;
|
|
|
|
/** @var string */
|
|
private $phone;
|
|
|
|
/** @var int|null */
|
|
private $businessType;
|
|
|
|
/**
|
|
* CompanyObject constructor.
|
|
* @param string $email
|
|
* @param string $phone
|
|
* @param int|null $businessType
|
|
*/
|
|
public function __construct(string $email, string $phone, ?int $businessType = BusinessType::IMPORTER)
|
|
{
|
|
$this->email = $email;
|
|
$this->phone = $phone;
|
|
$this->businessType = $businessType;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getEmail(): string
|
|
{
|
|
return $this->email;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getPhone(): string
|
|
{
|
|
return $this->phone;
|
|
}
|
|
|
|
/**
|
|
* @return int
|
|
*/
|
|
public function getBusinessType(): int
|
|
{
|
|
return $this->businessType;
|
|
}
|
|
}
|