public function setOption(string $key, $value): void
    {
        if (array_key_exists($key, $this->options)) {
            $this->options[$key] = $value;

            return;
        }

        throw new Exception('Invalid option key "' . $key . '".', Exception::INVALID_OPTION);
    }
public function setOption(string $key, $value): void
    {
        if (array_key_exists($key, $this->options)) {
            $this->options[$key] = $value;

            return;
        }

        throw new Exception('Invalid option key "' . $key . '".', Exception::INVALID_OPTION);
    }
public function setOption ( string $ key , $ value ) : void { if ( array_key_exists ( $ key , $ this -> options ) ) { $ this -> options [ $ key ] = $ value ; return ; } throw new Exception ( 'Invalid option key "' . $ key . '".' , Exception :: INVALID_OPTION ) ; }
Sets an loader option value

@param string $key
@param mixed  $value

@throws \FileLoader\Exception

@return void
Sets an loader option value