mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/portal.git
synced 2026-08-25 15:34:24 +00:00
update: changes on Contacts Module based on changes #6
This commit is contained in:
@@ -22,9 +22,6 @@ class ContactObject implements DataTransferObject
|
||||
/** @var string|null */
|
||||
private $wechat_id;
|
||||
|
||||
/** @var int|null */
|
||||
private $countryId;
|
||||
|
||||
/**
|
||||
* ContactObject constructor.
|
||||
* @param int $companyId
|
||||
@@ -34,22 +31,12 @@ class ContactObject implements DataTransferObject
|
||||
* @param null|string $wechat_id
|
||||
* @param int|null $countryId
|
||||
*/
|
||||
public function __construct(int $companyId, string $reference, ?string $phone, ?string $email, ?string $wechat_id, ?int $countryId = Countries::MALAYSIA)
|
||||
public function __construct(string $reference, ?string $phone, ?string $email, ?string $wechat_id)
|
||||
{
|
||||
$this->companyId = $companyId;
|
||||
$this->reference = $reference;
|
||||
$this->phone = $phone;
|
||||
$this->email = $email;
|
||||
$this->wechat_id = $wechat_id;
|
||||
$this->countryId = $countryId;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getCompanyId(): int
|
||||
{
|
||||
return $this->companyId;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -84,15 +71,19 @@ class ContactObject implements DataTransferObject
|
||||
return $this->wechat_id;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getCountryId(): int
|
||||
{
|
||||
return $this->countryId;
|
||||
}
|
||||
// /**
|
||||
// * @return int
|
||||
// */
|
||||
// public function getOwnerId(): int
|
||||
// {
|
||||
// return $this->owner_id;
|
||||
// }
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
// /**
|
||||
// * @return string
|
||||
// */
|
||||
// public function getOwnerType(): string
|
||||
// {
|
||||
// return $this->owner_type;
|
||||
// }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user