mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/portal.git
synced 2026-08-19 12:34:01 +00:00
90 lines
1.7 KiB
PHP
90 lines
1.7 KiB
PHP
<?php
|
|
|
|
namespace App\Classes\Modules\Contacts\DataTransferObjects;
|
|
|
|
use App\Classes\General\Interfaces\DataTransferObject;
|
|
use App\Classes\ValueObjects\Constants\Countries;
|
|
|
|
class ContactObject implements DataTransferObject
|
|
{
|
|
/** @var int */
|
|
private $companyId;
|
|
|
|
/** @var string */
|
|
private $reference;
|
|
|
|
/** @var string|null */
|
|
private $phone;
|
|
|
|
/** @var string|null */
|
|
private $email;
|
|
|
|
/** @var string|null */
|
|
private $wechat_id;
|
|
|
|
/**
|
|
* ContactObject constructor.
|
|
* @param int $companyId
|
|
* @param string $reference
|
|
* @param null|string $phone
|
|
* @param null|string $email
|
|
* @param null|string $wechat_id
|
|
* @param int|null $countryId
|
|
*/
|
|
public function __construct(string $reference, ?string $phone, ?string $email, ?string $wechat_id)
|
|
{
|
|
$this->reference = $reference;
|
|
$this->phone = $phone;
|
|
$this->email = $email;
|
|
$this->wechat_id = $wechat_id;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getReference(): string
|
|
{
|
|
return $this->reference;
|
|
}
|
|
|
|
/**
|
|
* @return null|string
|
|
*/
|
|
public function getPhone(): ?string
|
|
{
|
|
return $this->phone;
|
|
}
|
|
|
|
/**
|
|
* @return null|string
|
|
*/
|
|
public function getEmail(): ?string
|
|
{
|
|
return $this->email;
|
|
}
|
|
|
|
/**
|
|
* @return null|string
|
|
*/
|
|
public function getWechatId(): ?string
|
|
{
|
|
return $this->wechat_id;
|
|
}
|
|
|
|
// /**
|
|
// * @return int
|
|
// */
|
|
// public function getOwnerId(): int
|
|
// {
|
|
// return $this->owner_id;
|
|
// }
|
|
|
|
// /**
|
|
// * @return string
|
|
// */
|
|
// public function getOwnerType(): string
|
|
// {
|
|
// return $this->owner_type;
|
|
// }
|
|
}
|