original_string: public function asSet(): Constructed\Set
      {
          if (!$this->_element instanceof Constructed\Set) {
              throw new \UnexpectedValueException(
                  $this->_generateExceptionMessage(Element::TYPE_SET));
          }
          return $this->_element;
      }
code: public function asSet(): Constructed\Set
      {
          if (!$this->_element instanceof Constructed\Set) {
              throw new \UnexpectedValueException(
                  $this->_generateExceptionMessage(Element::TYPE_SET));
          }
          return $this->_element;
      }
code_tokens: public function asSet ( ) : Constructed \ Set { if ( ! $ this -> _element instanceof Constructed \ Set ) { throw new \ UnexpectedValueException ( $ this -> _generateExceptionMessage ( Element :: TYPE_SET ) ) ; } return $ this -> _element ; }
docstring: Get the wrapped element as a set type.
  
  @throws \UnexpectedValueException If the element is not a set
  @return \ASN1\Type\Constructed\Set
docstring_tokens: Get the wrapped element as a set type .