mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/izyim.git
synced 2026-08-19 12:34:03 +00:00
77 lines
1.4 KiB
PHP
77 lines
1.4 KiB
PHP
<?php
|
|
|
|
namespace App\Classes\Modules\Accounts\DataTransferObjects;
|
|
|
|
final class UserObject {
|
|
/** @var string */
|
|
private $firstName;
|
|
|
|
/** @var string */
|
|
private $lastName;
|
|
|
|
/** @var string */
|
|
private $email;
|
|
|
|
/** @var string */
|
|
private $password;
|
|
|
|
/** @var bool */
|
|
private $isVerified;
|
|
|
|
/**
|
|
* @param string $firstName
|
|
* @param string $lastName
|
|
* @param string $email
|
|
* @param string $password
|
|
* @param bool $isVerified
|
|
*/
|
|
public function __construct(
|
|
string $firstName,
|
|
string $lastName,
|
|
string $email,
|
|
string $password,
|
|
bool $isVerified = false
|
|
) {
|
|
$this->firstName = $firstName;
|
|
$this->lastName = $lastName;
|
|
$this->email = $email;
|
|
$this->password = $password;
|
|
$this->isVerified = $isVerified;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getFirstName(): string {
|
|
return $this->firstName;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getLastName(): string {
|
|
return $this->lastName;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getEmail(): string {
|
|
return $this->email;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getPassword(): string {
|
|
return $this->password;
|
|
}
|
|
|
|
/**
|
|
* @return bool
|
|
*/
|
|
public function isVerified(): bool {
|
|
return $this->isVerified;
|
|
}
|
|
}
|