public function complete(CompletionInput
$input, CompletionSuggestions
$suggestions): void
{ $values =
$this->suggestedValues;
if ($values instanceof \Closure && !\
is_array($values =
$values($input))) { throw new LogicException(sprintf('Closure for option "%s" must return an array. Got "%s".',
$this->name,
get_debug_type($values)));
} if ($values) { $suggestions->
suggestValues($values);
} } /**
* Checks whether the given option equals this one.
*/
public function equals(self
$option): bool
{ return $option->
getName() ===
$this->
getName() &&
$option->
getShortcut() ===
$this->
getShortcut() &&
$option->
getDefault() ===
$this->
getDefault()