| 1 | <?php |
||
| 9 | class LazyLoadingCommandHandler implements CommandHandler |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var \Chief\Container |
||
| 13 | */ |
||
| 14 | protected $container; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var string |
||
| 18 | */ |
||
| 19 | protected $handlerName; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @param string $handlerName |
||
| 23 | * @param Container $container |
||
| 24 | */ |
||
| 25 | public function __construct($handlerName, Container $container) |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Handle a command execution |
||
| 33 | * |
||
| 34 | * @param Command $command |
||
| 35 | * @return mixed |
||
| 36 | */ |
||
| 37 | public function handle(Command $command) |
||
| 43 | } |
||
| 44 |