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

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