Completed
Push — master ( 929034...adc5e6 )
by Marcus
02:23
created

StandardInt::minUnSignedValue()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
namespace Mbright\Validation\Rule\Validate\MySql;
4
5
use Mbright\Validation\Rule\Validate\ValidateRuleInterface;
6
7
/**
8
 * Validates that data can be inserted into one of the following column types:
9
 * - INT
10
 */
11
class StandardInt extends AbstractMySqlIntegerCase implements ValidateRuleInterface
12
{
13
    /**
14
     * {@inheritdoc}
15
     */
16 27
    protected function minSignedValue()
17
    {
18 27
        return -2147483648;
19
    }
20
21
    /**
22
     * {@inheritdoc}
23
     */
24 21
    protected function maxSignedValue()
25
    {
26 21
        return 2147483647;
27
    }
28
29
    /**
30
     * {@inheritdoc}
31
     */
32 18
    protected function maxUnsignedValue()
33
    {
34 18
        return 4294967295;
35
    }
36
37
    /**
38
     * {@inheritdoc}
39
     */
40 24
    protected function minUnSignedValue()
41
    {
42 24
        return 0;
43
    }
44
}
45