public function firstURI(): string
    {
        $gn = $this->firstOf(GeneralName::TAG_URI);
        if (!$gn instanceof UniformResourceIdentifier) {
            throw new \RuntimeException(
                UniformResourceIdentifier::class . " expected, got " .
                     get_class($gn));
        }
        return $gn->uri();
    }
public function firstURI(): string
    {
        $gn = $this->firstOf(GeneralName::TAG_URI);
        if (!$gn instanceof UniformResourceIdentifier) {
            throw new \RuntimeException(
                UniformResourceIdentifier::class . " expected, got " .
                     get_class($gn));
        }
        return $gn->uri();
    }
public function firstURI ( ) : string { $ gn = $ this -> firstOf ( GeneralName :: TAG_URI ) ; if ( ! $ gn instanceof UniformResourceIdentifier ) { throw new \ RuntimeException ( UniformResourceIdentifier :: class . " expected, got " . get_class ( $ gn ) ) ; } return $ gn -> uri ( ) ; }
Get value of the first 'uniformResourceIdentifier' type.

@return string
Get value of the first uniformResourceIdentifier type .