Files
exchange-2.0/app/Classes/Modules/Companies/DataTransferObjects/CompanyProfileObject.php
T
2023-08-06 10:50:32 +08:00

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;
}
}