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