-
-
Save mdzwigala/b5d4d1195e899f24696724bc4a920c30 to your computer and use it in GitHub Desktop.
ADR-EXAMPLE\Action\AddUserInput
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
declare(strict_types=1); | |
namespace App\Action\Input; | |
use Symfony\Component\Validator\Constraints as Assert; | |
final class AddUserInput | |
{ | |
private string $email; | |
private string $password; | |
public function __construct(string $email, string $password) | |
{ | |
$this->email = $email; | |
$this->password = $password; | |
} | |
public function getEmail(): string | |
{ | |
return $this->email; | |
} | |
public function getPassword(): string | |
{ | |
return $this->password; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment