actions = \array_values($actions); $this->defaultToContinue = $defaultToContinue; } /** * {@inheritdoc} */ public function execute(Buffer $buffer, Terminal $terminal, Readline $readline): bool { foreach ($this->actions as $action) { if ($action->execute($buffer, $terminal, $readline)) { return true; } } return $this->defaultToContinue; } /** * {@inheritdoc} */ public function getName(): string { return 'fallback('.\implode(',', \array_map(fn (ActionInterface $action) => $action->getName(), $this->actions)).')'; } }