Either enable or disable the given flag on
the given bit vector.
public static bitVectorWithState ( integer $bit_vector, integer $flag, boolean $value ) : integer | ||
$bit_vector | integer | The bit vector we're operating on |
$flag | integer | The flag we're setting on the bit vector such as Flags::IS_DEPRECATED. |
$value | boolean | True to or the flag in, false to & the bit vector with the flags negation |
return | integer | A new bit vector with the given flag set or unset |