| 1 | <?php  | 
            ||
| 14 | class Executor implements ExecutorInterface  | 
            ||
| 15 | { | 
            ||
| 16 | /**  | 
            ||
| 17 | * @var ActionExecutorInterface[]  | 
            ||
| 18 | */  | 
            ||
| 19 | protected $executors;  | 
            ||
| 20 | |||
| 21 | 8 | public function __construct()  | 
            |
| 25 | |||
| 26 | /**  | 
            ||
| 27 | * @inheritDoc  | 
            ||
| 28 | */  | 
            ||
| 29 | 2 | public function addExecutor(string $actionName, ActionExecutorInterface $executor) : self  | 
            |
| 35 | |||
| 36 | /**  | 
            ||
| 37 | * @inheritDoc  | 
            ||
| 38 | */  | 
            ||
| 39 | 3 | public function getExecutor(string $actionName) : ActionExecutorInterface  | 
            |
| 47 | |||
| 48 | /**  | 
            ||
| 49 | * @inheritDoc  | 
            ||
| 50 | */  | 
            ||
| 51 | 6 | public function execute(ActionInterface $action)  | 
            |
| 59 | }  | 
            ||
| 60 |