IntegerColumn   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 60
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 5
lcom 0
cbo 1
dl 0
loc 60
ccs 12
cts 12
cp 1
rs 10
c 0
b 0
f 0

5 Methods

Rating   Name   Duplication   Size   Complexity  
A isNumericUnsigned() 0 4 1
A getNumericUnsigned() 0 4 1
A setNumericUnsigned() 0 6 1
A setIsAutoIncrement() 0 6 1
A isAutoIncrement() 0 4 1
1
<?php
2
3
namespace Soluble\Datatype\Column\Definition;
4
5
class IntegerColumn extends AbstractColumnDefinition implements NumericColumnInterface
6
{
7
    /**
8
     * @var bool
9
     */
10
    protected $numericUnsigned = null;
11
12
    /**
13
     * @var bool
14
     */
15
    protected $isAutoIncrement;
16
17
    /**
18
     * @return bool
19
     */
20
    public function getNumericUnsigned()
21 1
    {
22
        return $this->numericUnsigned;
23 1
    }
24
25
    /**
26
     * @param bool $numericUnsigned
27
     *
28
     * @return IntegerColumn
29
     */
30 1
    public function setNumericUnsigned($numericUnsigned)
31
    {
32 1
        $this->numericUnsigned = $numericUnsigned;
33 1
34
        return $this;
35
    }
36
37
    /**
38
     * @return bool
39
     */
40 1
    public function isNumericUnsigned()
41
    {
42 1
        return $this->numericUnsigned;
43
    }
44
45
    /**
46
     * @param bool $isAutoIncrement to set
47
     *
48
     * @return IntegerColumn
49
     */
50 1
    public function setIsAutoIncrement($isAutoIncrement)
51
    {
52 1
        $this->isAutoIncrement = $isAutoIncrement;
53 1
54
        return $this;
55
    }
56
57
    /**
58
     * @return bool $isAutoIncrement
59 1
     */
60
    public function isAutoIncrement()
61 1
    {
62
        return $this->isAutoIncrement;
63
    }
64
}
65