| 1 | <?php  | 
            ||
| 12 | class BitValue extends AbstractIntegerCase implements ValidateRuleInterface  | 
            ||
| 13 | { | 
            ||
| 14 | /** @var int */  | 
            ||
| 15 | protected $size;  | 
            ||
| 16 | |||
| 17 | 9 | public function __construct(int $size)  | 
            |
| 25 | |||
| 26 | /**  | 
            ||
| 27 | * Validates that the given field has an integer value that can be expressed in the appropriate number of bits.  | 
            ||
| 28 | *  | 
            ||
| 29 | * @param object $subject  | 
            ||
| 30 | * @param string $field  | 
            ||
| 31 | *  | 
            ||
| 32 | * @return bool  | 
            ||
| 33 | */  | 
            ||
| 34 | 9 | public function __invoke($subject, string $field): bool  | 
            |
| 42 | }  | 
            ||
| 43 |