
Wojtek Jarzecki - 2012-01-13 11:04:38
Thank you for your quick response and modification of this class. The class is an old but very useful.
I added(copied) one method. For their goals because I like to call the methods as strings toggleset, then this method calls added.
/**
* Toggleset the set bit at $offset.
* If the bit is set then reset it, and viceversa.
*
* @param int $offset
* @return Bitfield
*/
function toggleset (/*int*/$offset) {
$this->_bits ^= 1 << $offset;
return $this;
}
regards
Wojtek