1 | <?php |
||
25 | class ExecuteCommand extends Command |
||
26 | { |
||
27 | const START_RESULT = '<?result'; |
||
28 | const END_RESULT = '?>'; |
||
29 | |||
30 | /** |
||
31 | * @var TaskHandlerFactoryInterface |
||
32 | */ |
||
33 | private $handlerFactory; |
||
34 | |||
35 | /** |
||
36 | * @var TaskExecutionRepositoryInterface |
||
37 | */ |
||
38 | private $executionRepository; |
||
39 | |||
40 | /** |
||
41 | * @param string $name |
||
42 | * @param TaskHandlerFactoryInterface $handlerFactory |
||
43 | * @param TaskExecutionRepositoryInterface $executionRepository |
||
44 | */ |
||
45 | 13 | public function __construct( |
|
55 | |||
56 | /** |
||
57 | * {@inheritdoc} |
||
58 | */ |
||
59 | 13 | protected function configure() |
|
63 | |||
64 | /** |
||
65 | * {@inheritdoc} |
||
66 | */ |
||
67 | protected function execute(InputInterface $input, OutputInterface $output) |
||
86 | |||
87 | /** |
||
88 | * {@inheritdoc} |
||
89 | */ |
||
90 | public function isHidden() |
||
94 | } |
||
95 |
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.