public function getOption(string $key): Option
    {
        if (! $this->has($key)) {
            throw UnknownOptionKey::fromKey($key);
        }

        return $this->map[$key][self::SUBKEY_OPTION];
    }
public function getOption(string $key): Option
    {
        if (! $this->has($key)) {
            throw UnknownOptionKey::fromKey($key);
        }

        return $this->map[$key][self::SUBKEY_OPTION];
    }
public function getOption ( string $ key ) : Option { if ( ! $ this -> has ( $ key ) ) { throw UnknownOptionKey :: fromKey ( $ key ) ; } return $ this -> map [ $ key ] [ self :: SUBKEY_OPTION ] ; }
Get the associated option for a specific key.

@since 0.1.0

@param string $key Key to fetch the option for.

@return Option The option that is associated with the requested key.
Get the associated option for a specific key .