1 | <?php |
||
12 | final class DeleteUserCommand extends UserCommand |
||
13 | { |
||
14 | /** |
||
15 | * @var UserRepositoryCollection |
||
16 | */ |
||
17 | private $userRepositoryCollection; |
||
18 | |||
19 | /** |
||
20 | * @var DeleteUserHandler |
||
21 | */ |
||
22 | private $handler; |
||
23 | |||
24 | /** |
||
25 | * DeleteUserCommand constructor. |
||
26 | * |
||
27 | * @param UserRepositoryCollection $userRepositoryCollection |
||
28 | * @param DeleteUserHandler $handler |
||
29 | */ |
||
30 | public function __construct(UserRepositoryCollection $userRepositoryCollection, DeleteUserHandler $handler) |
||
36 | |||
37 | protected function configure() |
||
56 | |||
57 | protected function execute(InputInterface $input, OutputInterface $output) |
||
80 | |||
81 | /** |
||
82 | * Get the repository for the user's Class. |
||
83 | * |
||
84 | * @param $userClass |
||
85 | * |
||
86 | * @return UserRepository |
||
87 | */ |
||
88 | private function getRepository($userClass) |
||
92 | } |
||
93 |