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

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