original_string: public static function fromDecimal($size, $values = 0)
  	{
  		$size = min((int) $size, PHP_INT_SIZE);
  		$values <<= PHP_INT_SIZE - $size;
  		$bits = new BitArray($size);
  
  		for ($i = 0; $i < PHP_INT_SIZE; $i++)
  		{
  			$bits->data[$i] = chr(($values & (0xff << (PHP_INT_SIZE - 8))) >> (PHP_INT_SIZE - 8));
  			$values <<= 8;
  		}
  
  		return $bits;
  	}
code: public static function fromDecimal($size, $values = 0)
  	{
  		$size = min((int) $size, PHP_INT_SIZE);
  		$values <<= PHP_INT_SIZE - $size;
  		$bits = new BitArray($size);
  
  		for ($i = 0; $i < PHP_INT_SIZE; $i++)
  		{
  			$bits->data[$i] = chr(($values & (0xff << (PHP_INT_SIZE - 8))) >> (PHP_INT_SIZE - 8));
  			$values <<= 8;
  		}
  
  		return $bits;
  	}
code_tokens: public static function fromDecimal ( $ size , $ values = 0 ) { $ size = min ( ( int ) $ size , PHP_INT_SIZE ) ; $ values <<= PHP_INT_SIZE - $ size ; $ bits = new BitArray ( $ size ) ; for ( $ i = 0 ; $ i < PHP_INT_SIZE ; $ i ++ ) { $ bits -> data [ $ i ] = chr ( ( $ values & ( 0xff << ( PHP_INT_SIZE - 8 ) ) ) >> ( PHP_INT_SIZE - 8 ) ) ; $ values <<= 8 ; } return $ bits ; }
docstring: Create a new BitArray from a sequence of bits.
  
  @param   integer  $size    Size of the BitArray
  @param   integer  $values  The values for the bits
  
  @return  BitArray  A new BitArray
  
  @since   1.2.0
docstring_tokens: Create a new BitArray from a sequence of bits .