Files
exchange-2.0/app/Classes/Modules/Contacts/DataTransferObjects/ContactObject.php
T
2020-10-24 10:31:52 +08:00

100 lines
1.9 KiB
PHP

<?php
namespace App\Classes\Modules\Contacts\DataTransferObjects;
use App\Classes\Interfaces\DataTransferObject;
class ContactObject implements DataTransferObject
{
/** @var int|null */
private $country_id;
/** @var int|null */
private $company_id;
/** @var string|null */
private $reference;
/** @var string|null */
private $phone;
/** @var string|null */
private $email;
/** @var string|null */
private $wechat_id;
/**
* CompanyObject constructor.
* @param int|null $country_id
* @param int|null $company_id
* @param string|null $reference
* @param string|null $phone
* @param string|null $email
* @param string|null $wechat_id
*/
public function __construct(
?int $country_id,
?int $company_id,
?string $reference,
?string $phone,
?string $email,
?string $wechat_id
)
{
$this->country_id = $country_id;
$this->company_id = $company_id;
$this->reference = $reference;
$this->phone = $phone;
$this->email = $email;
$this->wechat_id = $wechat_id;
}
/**
* @return int|null
*/
public function getCountryId(): ?int
{
return $this->country_id;
}
/**
* @return int|null
*/
public function getCompanyId(): ?int
{
return $this->company_id;
}
/**
* @return string|null
*/
public function getReference(): ?string
{
return $this->reference;
}
/**
* @return string|null
*/
public function getPhone(): ?string
{
return $this->phone;
}
/**
* @return string|null
*/
public function getEmail(): ?string
{
return $this->email;
}
/**
* @return string|null
*/
public function getWeChatId(): ?string
{
return $this->wechat_id;
}
}