Files
exchange-2.0/app/Classes/Modules/Accounts/DataTransferObjects/UserObject.php
T
2020-12-08 16:21:53 +08:00

100 lines
1.8 KiB
PHP

<?php
namespace App\Classes\Modules\Accounts\DataTransferObjects;
use App\Classes\Interfaces\DataTransferObject;
class UserObject implements DataTransferObject
{
/** @var string|null */
private $name;
/** @var string|null */
private $email;
/** @var string|null */
private $password;
/** @var string|null */
private $password_confirmation;
/** @var int */
private $type;
/** @var int */
private $status;
/**
* UserObject constructor.
* @param string|null $name
* @param string|null $email
* @param string|null $password
* @param string|null $password_confirmation
* @param int $type
* @param int $status
*/
public function __construct(
?string $name,
?string $email,
?string $password,
?string $password_confirmation,
int $type,
int $status
)
{
$this->name = $name;
$this->email = $email;
$this->password = $password;
$this->password_confirmation = $password_confirmation;
$this->type = $type;
$this->status = $status;
}
/**
* @return string
*/
public function getName(): ?string
{
return $this->name;
}
/**
* @return string
*/
public function getEmail(): ?string
{
return $this->email;
}
/**
* @return string
*/
public function getPassword(): ?string
{
return $this->password;
}
/**
* @return string
*/
public function getPasswordConfirmation(): ?string
{
return $this->password_confirmation;
}
/**
* @return int
*/
public function getType(): int
{
return $this->type;
}
/**
* @return int
*/
public function getStatus(): int
{
return $this->status;
}
}