create user use case with request and dto
This commit is contained in:
parent
6aaa8cac83
commit
f18d958481
3 changed files with 42 additions and 0 deletions
12
app/User/UseCases/CreateUserDto.php
Normal file
12
app/User/UseCases/CreateUserDto.php
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php
|
||||
|
||||
namespace App\User\UseCases;
|
||||
|
||||
use App\ValueObjects\EmailAddress;
|
||||
|
||||
class CreateUserDto
|
||||
{
|
||||
public function __construct(
|
||||
public EmailAddress $email,
|
||||
) {}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue