public function offsetSet($offset, $value)
	{
		if ($this->offsetExists($offset))
		{
			$index = (int) ($offset / 8);

			if ($value)
			{
				$this->data[$index] = chr(ord($this->data[$index]) | (1 << $offset % 8));
			}
			else
			{
				$this->data[$index] = chr(ord($this->data[$index]) & ~(1 << $offset % 8));
			}
		}
		else
		{
			throw new \OutOfRangeException('Argument index must be a positive integer lesser than the size');
		}
	}
public function offsetSet($offset, $value)
	{
		if ($this->offsetExists($offset))
		{
			$index = (int) ($offset / 8);

			if ($value)
			{
				$this->data[$index] = chr(ord($this->data[$index]) | (1 << $offset % 8));
			}
			else
			{
				$this->data[$index] = chr(ord($this->data[$index]) & ~(1 << $offset % 8));
			}
		}
		else
		{
			throw new \OutOfRangeException('Argument index must be a positive integer lesser than the size');
		}
	}
public function offsetSet ( $ offset , $ value ) { if ( $ this -> offsetExists ( $ offset ) ) { $ index = ( int ) ( $ offset / 8 ) ; if ( $ value ) { $ this -> data [ $ index ] = chr ( ord ( $ this -> data [ $ index ] ) | ( 1 << $ offset % 8 ) ) ; } else { $ this -> data [ $ index ] = chr ( ord ( $ this -> data [ $ index ] ) & ~ ( 1 << $ offset % 8 ) ) ; } } else { throw new \ OutOfRangeException ( 'Argument index must be a positive integer lesser than the size' ) ; } }
Set the truth value for an index

@param   integer  $offset  The offset
@param   boolean  $value   The truth value

@return  void

@throw   \OutOfRangeException  Argument index must be an positive integer lesser than the size

@since   1.0.0
Set the truth value for an index