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

IntegerColumn::setIsAutoIncrement()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2
Metric Value
dl 0
loc 5
ccs 0
cts 5
cp 0
rs 9.4286
cc 1
eloc 3
nc 1
nop 1
crap 2
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