Completed
Push — master ( c18ee0...6804db )
by Sébastien
14:50
created

IntegerColumn   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 60
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

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

5 Methods

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