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

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