public function asUTF8String(): Primitive\UTF8String
    {
        if (!$this->_element instanceof Primitive\UTF8String) {
            throw new \UnexpectedValueException(
                $this->_generateExceptionMessage(Element::TYPE_UTF8_STRING));
        }
        return $this->_element;
    }
public function asUTF8String(): Primitive\UTF8String
    {
        if (!$this->_element instanceof Primitive\UTF8String) {
            throw new \UnexpectedValueException(
                $this->_generateExceptionMessage(Element::TYPE_UTF8_STRING));
        }
        return $this->_element;
    }
public function asUTF8String ( ) : Primitive \ UTF8String { if ( ! $ this -> _element instanceof Primitive \ UTF8String ) { throw new \ UnexpectedValueException ( $ this -> _generateExceptionMessage ( Element :: TYPE_UTF8_STRING ) ) ; } return $ this -> _element ; }
Get the wrapped element as a UTF8 string type.

@throws \UnexpectedValueException If the element is not a UTF8 string
@return \ASN1\Type\Primitive\UTF8String
Get the wrapped element as a UTF8 string type .