update: changes on Contacts Module based on changes #6

This commit is contained in:
weichien00
2021-07-08 01:53:14 +08:00
parent 45077c953e
commit dc11a1f8d5
4 changed files with 24 additions and 40 deletions
@@ -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;
// }
}