1 | <?php |
||
10 | class DashboardWidget |
||
11 | { |
||
12 | /** |
||
13 | * @var ContainerAwareCommand |
||
14 | */ |
||
15 | private $command; |
||
16 | |||
17 | /** |
||
18 | * @var string |
||
19 | */ |
||
20 | private $controller; |
||
21 | |||
22 | /** |
||
23 | * @param string $command |
||
24 | * @param string $controller |
||
25 | * @param \Symfony\Component\DependencyInjection\ContainerInterface $container |
||
26 | */ |
||
27 | public function __construct($command, $controller, ContainerInterface $container) |
||
33 | |||
34 | /** |
||
35 | * @return ContainerAwareCommand |
||
36 | */ |
||
37 | public function getCommand() |
||
41 | |||
42 | public function resolvedController() |
||
59 | } |
||
60 |
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.