| Total Complexity | 2 |
| Total Lines | 15 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 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 |
|
| 22 | //)->read() |
||
| 23 | ; |
||
| 26 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.