update profile backend

This commit is contained in:
JiaSheng
2023-08-06 10:50:32 +08:00
parent 4db0fb9f29
commit f4e045df5c
10 changed files with 270 additions and 21 deletions
@@ -0,0 +1,55 @@
<?php
namespace App\Classes\Modules\Companies\DataTransferObjects;
use App\Classes\General\Interfaces\DataTransferObject;
use App\Classes\ValueObjects\Constants\BusinessType;
class CompanyProfileObject implements DataTransferObject
{
/** @var string */
private $email;
/** @var string */
private $phone;
/** @var int|null */
private $businessType;
/**
* CompanyObject constructor.
* @param string $email
* @param string $phone
* @param int|null $businessType
*/
public function __construct(string $email, string $phone, ?int $businessType = BusinessType::IMPORTER)
{
$this->email = $email;
$this->phone = $phone;
$this->businessType = $businessType;
}
/**
* @return string
*/
public function getEmail(): string
{
return $this->email;
}
/**
* @return string
*/
public function getPhone(): string
{
return $this->phone;
}
/**
* @return int
*/
public function getBusinessType(): int
{
return $this->businessType;
}
}