public function asRelativeOID(): Primitive\RelativeOID
    {
        if (!$this->_element instanceof Primitive\RelativeOID) {
            throw new \UnexpectedValueException(
                $this->_generateExceptionMessage(Element::TYPE_RELATIVE_OID));
        }
        return $this->_element;
    }
public function asRelativeOID(): Primitive\RelativeOID
    {
        if (!$this->_element instanceof Primitive\RelativeOID) {
            throw new \UnexpectedValueException(
                $this->_generateExceptionMessage(Element::TYPE_RELATIVE_OID));
        }
        return $this->_element;
    }
public function asRelativeOID ( ) : Primitive \ RelativeOID { if ( ! $ this -> _element instanceof Primitive \ RelativeOID ) { throw new \ UnexpectedValueException ( $ this -> _generateExceptionMessage ( Element :: TYPE_RELATIVE_OID ) ) ; } return $ this -> _element ; }
Get the wrapped element as a relative OID type.

@throws \UnexpectedValueException If the element is not a relative OID
@return \ASN1\Type\Primitive\RelativeOID
Get the wrapped element as a relative OID type .