1 | <?php |
||
21 | class LogoutUserCommand implements CommandNamedInterface, CommandValidatableInterface |
||
22 | { |
||
23 | /** |
||
24 | * @var string |
||
25 | */ |
||
26 | protected $email; |
||
27 | |||
28 | /** |
||
29 | * LogoutUserCommand constructor. |
||
30 | * |
||
31 | * @param $email |
||
32 | */ |
||
33 | public function __construct($email) |
||
37 | |||
38 | /** |
||
39 | * @return string |
||
40 | */ |
||
41 | public function email() |
||
45 | |||
46 | /** |
||
47 | * @param string $email |
||
48 | */ |
||
49 | public function setEmail($email) |
||
53 | |||
54 | /** |
||
55 | * @return bool |
||
56 | */ |
||
57 | public function isLogin() |
||
61 | |||
62 | /** |
||
63 | * {@inheritdoc} |
||
64 | */ |
||
65 | public function name() |
||
69 | |||
70 | /** |
||
71 | * {@inheritdoc} |
||
72 | */ |
||
73 | public function addValidationConstraints(Validator $validator) |
||
76 | } |
||
77 |