private static function encodeBoolean($bool)
    {
        if ($bool)
        {
            return self::encodeFirstByte(MajorType::SIMPLE_AND_FLOAT, AdditionalType::SIMPLE_TRUE);
        }
        else
        {
            return self::encodeFirstByte(MajorType::SIMPLE_AND_FLOAT, AdditionalType::SIMPLE_FALSE);
        }
    }
private static function encodeBoolean($bool)
    {
        if ($bool)
        {
            return self::encodeFirstByte(MajorType::SIMPLE_AND_FLOAT, AdditionalType::SIMPLE_TRUE);
        }
        else
        {
            return self::encodeFirstByte(MajorType::SIMPLE_AND_FLOAT, AdditionalType::SIMPLE_FALSE);
        }
    }
private static function encodeBoolean ( $ bool ) { if ( $ bool ) { return self :: encodeFirstByte ( MajorType :: SIMPLE_AND_FLOAT , AdditionalType :: SIMPLE_TRUE ) ; } else { return self :: encodeFirstByte ( MajorType :: SIMPLE_AND_FLOAT , AdditionalType :: SIMPLE_FALSE ) ; } }
Encodes a boolean value.

@param boolean $bool The boolean to encode.
@return string The encoded byte string.
Encodes a boolean value .