private function isValidForRfc(string $rfc): bool
    {
        if ($this->parsedUri->hasUser() && Http::RFC_7230 === $rfc) {
            throw new MalformedUri(
                    'The URI ' . $this->parsedUri->asString()
                    . ' is not a valid HTTP URI according to ' . Http::RFC_7230
                    . ': contains userinfo, but this is disallowed'
            );
        }

        return $this->isSyntacticallyValid();
    }
private function isValidForRfc(string $rfc): bool
    {
        if ($this->parsedUri->hasUser() && Http::RFC_7230 === $rfc) {
            throw new MalformedUri(
                    'The URI ' . $this->parsedUri->asString()
                    . ' is not a valid HTTP URI according to ' . Http::RFC_7230
                    . ': contains userinfo, but this is disallowed'
            );
        }

        return $this->isSyntacticallyValid();
    }
private function isValidForRfc ( string $ rfc ) : bool { if ( $ this -> parsedUri -> hasUser ( ) && Http :: RFC_7230 === $ rfc ) { throw new MalformedUri ( 'The URI ' . $ this -> parsedUri -> asString ( ) . ' is not a valid HTTP URI according to ' . Http :: RFC_7230 . ': contains userinfo, but this is disallowed' ) ; } return $ this -> isSyntacticallyValid ( ) ; }
checks if uri is valid according to given rfc

@param   string  $rfc
@return  bool
@throws  \stubbles\peer\MalformedUri
checks if uri is valid according to given rfc