public function asObjectDescriptor(): Primitive\ObjectDescriptor
    {
        if (!$this->_element instanceof Primitive\ObjectDescriptor) {
            throw new \UnexpectedValueException(
                $this->_generateExceptionMessage(
                    Element::TYPE_OBJECT_DESCRIPTOR));
        }
        return $this->_element;
    }
public function asObjectDescriptor(): Primitive\ObjectDescriptor
    {
        if (!$this->_element instanceof Primitive\ObjectDescriptor) {
            throw new \UnexpectedValueException(
                $this->_generateExceptionMessage(
                    Element::TYPE_OBJECT_DESCRIPTOR));
        }
        return $this->_element;
    }
public function asObjectDescriptor ( ) : Primitive \ ObjectDescriptor { if ( ! $ this -> _element instanceof Primitive \ ObjectDescriptor ) { throw new \ UnexpectedValueException ( $ this -> _generateExceptionMessage ( Element :: TYPE_OBJECT_DESCRIPTOR ) ) ; } return $ this -> _element ; }
Get the wrapped element as an object descriptor type.

@throws \UnexpectedValueException If the element is not an object
descriptor
@return \ASN1\Type\Primitive\ObjectDescriptor
Get the wrapped element as an object descriptor type .