Made authorization.

This commit is contained in:
2023-07-06 10:48:32 +06:00
parent 6b2aff910b
commit f481ee765d
17 changed files with 356 additions and 5 deletions

View File

@@ -0,0 +1,27 @@
<?php declare(strict_types=1);
namespace App\Dto\Request;
final readonly class Authorization extends Dto
{
public function __construct(
private string $email,
private string $password,
private bool $remember = false
) { }
public function getEmail(): string
{
return $this->email;
}
public function getPassword(): string
{
return $this->password;
}
public function getRemember(): bool
{
return $this->remember;
}
}