ScriptFUSION\Porter\Options\EncapsulatedOptions::get PHP Method

get() final protected method

Gets the value for the specified option name. Returns the specified default value if option name is not set.
final protected get ( string $option ) : mixed
$option string Option name.
return mixed Option value or default value.
    protected final 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];
        }
    }