1 | <?php |
||
25 | class ExecuteCommand extends Command |
||
26 | { |
||
27 | /** |
||
28 | * @var TaskHandlerFactoryInterface |
||
29 | */ |
||
30 | private $handlerFactory; |
||
31 | |||
32 | /** |
||
33 | * @var TaskExecutionRepositoryInterface |
||
34 | */ |
||
35 | private $executionRepository; |
||
36 | |||
37 | /** |
||
38 | * @param string $name |
||
39 | * @param TaskHandlerFactoryInterface $handlerFactory |
||
40 | * @param TaskExecutionRepositoryInterface $executionRepository |
||
41 | */ |
||
42 | 13 | public function __construct( |
|
52 | |||
53 | /** |
||
54 | * {@inheritdoc} |
||
55 | */ |
||
56 | 13 | protected function configure() |
|
60 | |||
61 | /** |
||
62 | * {@inheritdoc} |
||
63 | */ |
||
64 | protected function execute(InputInterface $input, OutputInterface $output) |
||
84 | |||
85 | /** |
||
86 | * {@inheritdoc} |
||
87 | */ |
||
88 | public function isHidden() |
||
92 | } |
||
93 |
If a method or function can return multiple different values and unless you are sure that you only can receive a single value in this context, we recommend to add an additional type check:
If this a common case that PHP Analyzer should handle natively, please let us know by opening an issue.