src/Options/EncapsulatedOptions.php
final protected function get($option)
    {
        if (array_key_exists($key = "$option", $this->options)) {
            return $this->options[$key];
        }

        if (array_key_exists($key, $this->defaults)) {
            return $this->defaults[$key];
        }
    }
final protected function get($option)
    {
        if (array_key_exists($key = "$option", $this->options)) {
            return $this->options[$key];
        }

        if (array_key_exists($key, $this->defaults)) {
            return $this->defaults[$key];
        }
    }
final protected function get ( $ option ) { if ( array_key_exists ( $ key = "$option" , $ this -> options ) ) { return $ this -> options [ $ key ] ; } if ( array_key_exists ( $ key , $ this -> defaults ) ) { return $ this -> defaults [ $ key ] ; } }
Gets the value for the specified option name. When option name is not set the default value is retrieved, if
defined, otherwise null.

@param string $option Option name.

@return mixed Option value, default value or null.
Gets the value for the specified option name . When option name is not set the default value is retrieved if defined otherwise null .