Input/InputOption.php
public function equals(InputOption $option)
    {
        return $option->getName() === $this->getName()
            && $option->getShortcut() === $this->getShortcut()
            && $option->getDefault() === $this->getDefault()
            && $option->isArray() === $this->isArray()
            && $option->isValueRequired() === $this->isValueRequired()
            && $option->isValueOptional() === $this->isValueOptional()
        ;
    }
public function equals(InputOption $option)
    {
        return $option->getName() === $this->getName()
            && $option->getShortcut() === $this->getShortcut()
            && $option->getDefault() === $this->getDefault()
            && $option->isArray() === $this->isArray()
            && $option->isValueRequired() === $this->isValueRequired()
            && $option->isValueOptional() === $this->isValueOptional()
        ;
    }
public function equals ( InputOption $ option ) { return $ option -> getName ( ) === $ this -> getName ( ) && $ option -> getShortcut ( ) === $ this -> getShortcut ( ) && $ option -> getDefault ( ) === $ this -> getDefault ( ) && $ option -> isArray ( ) === $ this -> isArray ( ) && $ option -> isValueRequired ( ) === $ this -> isValueRequired ( ) && $ option -> isValueOptional ( ) === $ this -> isValueOptional ( ) ; }
Checks whether the given option equals this one.

@param InputOption $option option to compare

@return bool
Checks whether the given option equals this one .