1 | <?php |
||
14 | abstract class DelegateCommand extends Command |
||
15 | { |
||
16 | /** @var Command */ |
||
17 | protected $command; |
||
18 | |||
19 | /** |
||
20 | * @return Command |
||
21 | */ |
||
22 | abstract protected function createCommand(); |
||
23 | |||
24 | /** |
||
25 | * @return string |
||
26 | */ |
||
27 | protected function getMinimalVersion() |
||
31 | |||
32 | /** |
||
33 | * {@inheritDoc} |
||
34 | */ |
||
35 | public function isEnabled() |
||
39 | |||
40 | /** |
||
41 | * @param string $entityManagerName |
||
42 | * |
||
43 | * @return Command |
||
44 | */ |
||
45 | protected function wrapCommand($entityManagerName) |
||
56 | |||
57 | /** |
||
58 | * {@inheritDoc} |
||
59 | */ |
||
60 | protected function configure() |
||
72 | |||
73 | /** |
||
74 | * {@inheritDoc} |
||
75 | */ |
||
76 | protected function execute(InputInterface $input, OutputInterface $output) |
||
80 | |||
81 | /** |
||
82 | * {@inheritDoc} |
||
83 | */ |
||
84 | protected function interact(InputInterface $input, OutputInterface $output) |
||
88 | |||
89 | /** |
||
90 | * {@inheritDoc} |
||
91 | */ |
||
92 | protected function initialize(InputInterface $input, OutputInterface $output) |
||
96 | } |
||
97 |
Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a
@return
annotation as described here.