public function getOptionByName($name)
    {
        foreach ($this->options as $option) {
            if ($option->getName() == $name) {
                return $option;
            }
        }

        return false;
    }
public function getOptionByName($name)
    {
        foreach ($this->options as $option) {
            if ($option->getName() == $name) {
                return $option;
            }
        }

        return false;
    }
public function getOptionByName ( $ name ) { foreach ( $ this -> options as $ option ) { if ( $ option -> getName ( ) == $ name ) { return $ option ; } } return false ; }
Get an option by its name.

@param string $name

@return OptionInterface|false
Get an option by its name .