mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-21 21:43:57 +00:00
backend registration step 1
This commit is contained in:
@@ -0,0 +1,100 @@
|
||||
<?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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user