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

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