add create session dto
This commit is contained in:
parent
6fbdc82589
commit
b37e80147c
1 changed files with 15 additions and 0 deletions
15
app/Auth/CreateSessionDto.php
Normal file
15
app/Auth/CreateSessionDto.php
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<?php
|
||||
|
||||
namespace App\Auth;
|
||||
|
||||
use DateTimeImmutable;
|
||||
|
||||
class CreateSessionDto
|
||||
{
|
||||
public function __construct(
|
||||
public string $token,
|
||||
public int $userId,
|
||||
public DateTimeImmutable $createdAt,
|
||||
public DateTimeImmutable $expiresAt,
|
||||
) {}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue