function InputOption::equals
Checks whether the given option equals this one.
File
-
vendor/
symfony/ console/ Input/ InputOption.php, line 251
Class
- InputOption
- Represents a command line option.
Namespace
Symfony\Component\Console\InputCode
public function equals(self $option) : bool {
return $option->getName() === $this->getName() && $option->getShortcut() === $this->getShortcut() && $option->getDefault() === $this->getDefault() && $option->isNegatable() === $this->isNegatable() && $option->isArray() === $this->isArray() && $option->isValueRequired() === $this->isValueRequired() && $option->isValueOptional() === $this->isValueOptional();
}