| 1 | <?php  | 
            ||
| 11 | class CommandSubscriber implements EventSubscriberInterface  | 
            ||
| 12 | { | 
            ||
| 13 | private $runRunner;  | 
            ||
| 14 | private $commands;  | 
            ||
| 15 | private $io;  | 
            ||
| 16 | |||
| 17 | function __construct(CompositeRunRunner $runRunner, ConsoleIO $io, array $commands)  | 
            ||
| 23 | |||
| 24 | public static function getSubscribedEvents()  | 
            ||
| 28 | |||
| 29 | public function runRunCommand(ConsoleTerminateEvent $event)  | 
            ||
| 41 | }  | 
            ||
| 42 | 
Adding explicit visibility (
private,protected, orpublic) is generally recommend to communicate to other developers how, and from where this method is intended to be used.