mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal.git
synced 2026-09-01 10:54:06 +00:00
multiple invoices with one payment SDEV-421
This commit is contained in:
@@ -0,0 +1,89 @@
|
||||
<?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;
|
||||
// }
|
||||
}
|
||||
Reference in New Issue
Block a user