public function asPrivate(): Tagged\PrivateType
    {
        if (!$this->_element instanceof Tagged\PrivateType) {
            throw new \UnexpectedValueException(
                "Private type expected, got " . $this->_typeDescriptorString());
        }
        return $this->_element;
    }
public function asPrivate(): Tagged\PrivateType
    {
        if (!$this->_element instanceof Tagged\PrivateType) {
            throw new \UnexpectedValueException(
                "Private type expected, got " . $this->_typeDescriptorString());
        }
        return $this->_element;
    }
public function asPrivate ( ) : Tagged \ PrivateType { if ( ! $ this -> _element instanceof Tagged \ PrivateType ) { throw new \ UnexpectedValueException ( "Private type expected, got " . $ this -> _typeDescriptorString ( ) ) ; } return $ this -> _element ; }
Get the wrapped element as a private tagged type.

@throws \UnexpectedValueException If element is not using private tagging
@return \ASN1\Type\Tagged\PrivateType
Get the wrapped element as a private tagged type .