mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-28 00:43:58 +00:00
update email field to nullable
This commit is contained in:
@@ -7,7 +7,7 @@ use App\Classes\ValueObjects\Constants\BusinessType;
|
||||
|
||||
class CompanyProfileObject implements DataTransferObject
|
||||
{
|
||||
/** @var string */
|
||||
/** @var string|null */
|
||||
private $email;
|
||||
|
||||
/** @var string */
|
||||
@@ -18,11 +18,11 @@ class CompanyProfileObject implements DataTransferObject
|
||||
|
||||
/**
|
||||
* CompanyObject constructor.
|
||||
* @param string $email
|
||||
* @param string|null $email
|
||||
* @param string $phone
|
||||
* @param int|null $businessType
|
||||
*/
|
||||
public function __construct(string $email, string $phone, ?int $businessType = BusinessType::IMPORTER)
|
||||
public function __construct(?string $email, string $phone, ?int $businessType = BusinessType::IMPORTER)
|
||||
{
|
||||
$this->email = $email;
|
||||
$this->phone = $phone;
|
||||
@@ -30,9 +30,9 @@ class CompanyProfileObject implements DataTransferObject
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
* @return null|string
|
||||
*/
|
||||
public function getEmail(): string
|
||||
public function getEmail(): ?string
|
||||
{
|
||||
return $this->email;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user