/** * Register a new executor to the manager * * @param Executor $executor Executor to register * * @return void */ public function register(Executor $executor) { $type = $executor->getType(); $type = strtolower($type); $this->executors[$type] = $executor; }