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

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