update email field to nullable

This commit is contained in:
JiaSheng
2023-08-08 20:52:09 +08:00
parent e31f1eda53
commit 2d7e850ea4
3 changed files with 17 additions and 10 deletions
@@ -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;
}