OptionBag.php
public function get($name)
    {
        if (!array_key_exists($name, $this->options)) {
            throw new \InvalidArgumentException(sprintf('The option "%s" does not exist.', $name));
        }

        return $this->options[$name];
    }
public function get($name)
    {
        if (!array_key_exists($name, $this->options)) {
            throw new \InvalidArgumentException(sprintf('The option "%s" does not exist.', $name));
        }

        return $this->options[$name];
    }
public function get ( $ name ) { if ( ! array_key_exists ( $ name , $ this -> options ) ) { throw new \ InvalidArgumentException ( sprintf ( 'The option "%s" does not exist.' , $ name ) ) ; } return $ this -> options [ $ name ] ; }
Returns a option by name.

@param string $name The name.

@return mixed The option value.

@throws \InvalidArgumentException If the option does not exist.
Returns a option by name .