add email signup flow
This commit is contained in:
parent
9945163a2f
commit
3dc9204979
27 changed files with 629 additions and 24 deletions
|
|
@ -0,0 +1,36 @@
|
|||
<?php
|
||||
|
||||
namespace App\Email\EmailConfirmationToken;
|
||||
|
||||
use App\User\User;
|
||||
use DateTimeImmutable;
|
||||
|
||||
final readonly class EmailConfirmationToken
|
||||
{
|
||||
public function __construct(
|
||||
private int $id,
|
||||
private User $user,
|
||||
private DateTimeImmutable $availableTo,
|
||||
private string $token,
|
||||
) {}
|
||||
|
||||
public function getId(): int
|
||||
{
|
||||
return $this->id;
|
||||
}
|
||||
|
||||
public function getUser(): User
|
||||
{
|
||||
return $this->user;
|
||||
}
|
||||
|
||||
public function getAvailableTo(): DateTimeImmutable
|
||||
{
|
||||
return $this->availableTo;
|
||||
}
|
||||
|
||||
public function getToken(): string
|
||||
{
|
||||
return $this->token;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue