proyectotau /
TAUonDDD
| 1 | <?php |
||
| 2 | |||
| 3 | namespace ProyectoTAU\TAU\Module\Administration\User\Application\readAll; |
||
| 4 | |||
| 5 | use ProyectoTAU\TAU\Module\Administration\User\Domain\UserRepository; |
||
| 6 | |||
| 7 | final class ReadAllUsersCommandHandler |
||
| 8 | { |
||
| 9 | private $userRepository; |
||
| 10 | //private $dataTransformer; // TODO QueryBus pending |
||
| 11 | |||
| 12 | 3 | public function __construct(UserRepository $userRepository /*, DataTransformer $dataTransformer*/) |
|
| 13 | { |
||
| 14 | 3 | $this->userRepository = $userRepository; |
|
| 15 | //$this->dataTransformer = $dataTransformer; |
||
| 16 | 3 | } |
|
| 17 | |||
| 18 | 3 | public function handle(ReadAllUsersCommand $command): array //| mixed |
|
|
0 ignored issues
–
show
|
|||
| 19 | { |
||
| 20 | return //$this->dataTransformer->write( |
||
| 21 | 3 | $this->userRepository->readAll() |
|
| 22 | //)->read() |
||
| 23 | ; |
||
| 24 | } |
||
| 25 | } |
||
| 26 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.