public function asSet(): Constructed\Set
    {
        if (!$this->_element instanceof Constructed\Set) {
            throw new \UnexpectedValueException(
                $this->_generateExceptionMessage(Element::TYPE_SET));
        }
        return $this->_element;
    }
public function asSet(): Constructed\Set
    {
        if (!$this->_element instanceof Constructed\Set) {
            throw new \UnexpectedValueException(
                $this->_generateExceptionMessage(Element::TYPE_SET));
        }
        return $this->_element;
    }
public function asSet ( ) : Constructed \ Set { if ( ! $ this -> _element instanceof Constructed \ Set ) { throw new \ UnexpectedValueException ( $ this -> _generateExceptionMessage ( Element :: TYPE_SET ) ) ; } return $ this -> _element ; }
Get the wrapped element as a set type.

@throws \UnexpectedValueException If the element is not a set
@return \ASN1\Type\Constructed\Set
Get the wrapped element as a set type .