mirror of
https://gitlab.com/uldvstar/exchange-2.0.git
synced 2026-08-19 12:34:24 +00:00
60 lines
1.1 KiB
PHP
60 lines
1.1 KiB
PHP
<?php
|
|
|
|
namespace App\Classes\Modules\Accounts\DataTransferObjects;
|
|
|
|
|
|
use App\Classes\General\Interfaces\DataTransferObject;
|
|
|
|
class AuthenticationCredentialsObject implements DataTransferObject
|
|
{
|
|
|
|
/** @var string */
|
|
private $email;
|
|
|
|
/** @var string */
|
|
private $password;
|
|
|
|
/** @var boolean */
|
|
private $rememberUser;
|
|
|
|
|
|
/**
|
|
* AuthenticationCredentialsObject constructor.
|
|
* @param string $email
|
|
* @param string $password
|
|
* @param bool|null $rememberUser
|
|
*/
|
|
public function __construct(string $email, string $password, ?bool $rememberUser = false)
|
|
{
|
|
$this->email = $email;
|
|
$this->password = $password;
|
|
$this->rememberUser = $rememberUser;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getEmail(): string
|
|
{
|
|
return $this->email;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getPassword(): string
|
|
{
|
|
return $this->password;
|
|
}
|
|
|
|
/**
|
|
* @return bool
|
|
*/
|
|
public function isRememberUser(): bool
|
|
{
|
|
return $this->rememberUser;
|
|
}
|
|
|
|
|
|
|
|
} |