original_string: public function asObjectDescriptor(): Primitive\ObjectDescriptor
      {
          if (!$this->_element instanceof Primitive\ObjectDescriptor) {
              throw new \UnexpectedValueException(
                  $this->_generateExceptionMessage(
                      Element::TYPE_OBJECT_DESCRIPTOR));
          }
          return $this->_element;
      }
code: public function asObjectDescriptor(): Primitive\ObjectDescriptor
      {
          if (!$this->_element instanceof Primitive\ObjectDescriptor) {
              throw new \UnexpectedValueException(
                  $this->_generateExceptionMessage(
                      Element::TYPE_OBJECT_DESCRIPTOR));
          }
          return $this->_element;
      }
code_tokens: public function asObjectDescriptor ( ) : Primitive \ ObjectDescriptor { if ( ! $ this -> _element instanceof Primitive \ ObjectDescriptor ) { throw new \ UnexpectedValueException ( $ this -> _generateExceptionMessage ( Element :: TYPE_OBJECT_DESCRIPTOR ) ) ; } return $ this -> _element ; }
docstring: Get the wrapped element as an object descriptor type.
  
  @throws \UnexpectedValueException If the element is not an object
  descriptor
  @return \ASN1\Type\Primitive\ObjectDescriptor
docstring_tokens: Get the wrapped element as an object descriptor type .