public function setMaxBits($maxBits) { if ($maxBits <= PHP_INT_SIZE * 8) { $this->maxBits = $maxBits; } else { throw new \RangeException('Param greater than number of bits in int'); } }