Total Complexity | 6 |
Total Lines | 47 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
9 | class BigInt extends AbstractMySqlIntegerCase |
||
10 | { |
||
11 | /** |
||
12 | * {@inheritdoc} |
||
13 | */ |
||
14 | 9 | protected function minSignedValue() |
|
15 | { |
||
16 | 9 | return -pow(2, 63); |
|
17 | } |
||
18 | |||
19 | /** |
||
20 | * {@inheritdoc} |
||
21 | */ |
||
22 | 9 | protected function maxSignedValue() |
|
23 | { |
||
24 | 9 | return pow(2, 63) - 1; |
|
25 | } |
||
26 | |||
27 | /** |
||
28 | * {@inheritdoc} |
||
29 | */ |
||
30 | 6 | protected function maxUnsignedValue() |
|
33 | } |
||
34 | |||
35 | /** |
||
36 | * {@inheritdoc} |
||
37 | */ |
||
38 | 9 | protected function minUnSignedValue() |
|
41 | } |
||
42 | |||
43 | /** |
||
44 | * Ensures that the field's value is a valid Mysql standard int. |
||
45 | * |
||
46 | * @param object $subject |
||
47 | * @param string $field |
||
48 | * |
||
49 | * @return bool |
||
50 | */ |
||
51 | 27 | public function __invoke($subject, string $field): bool |
|
56 | } |
||
57 | } |
||
58 |