Order::getColumn()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Boduch\Grid;
4
5
class Order
6
{
7
    /**
8
     * @var string
9
     */
10
    protected $column;
11
12
    /**
13
     * @var string
14
     */
15
    protected $direction;
16
17
    /**
18
     * @param string|null $column
19
     * @param string|null $direction
20
     */
21
    public function __construct($column = null, $direction = null)
22
    {
23
        $this->column = $column;
24
        $this->direction = $direction;
25
    }
26
27
    /**
28
     * @return string
29
     */
30
    public function getColumn()
31
    {
32
        return $this->column;
33
    }
34
35
    /**
36
     * @param string $column
37
     */
38
    public function setColumn($column)
39
    {
40
        $this->column = $column;
41
    }
42
43
    /**
44
     * @return string
45
     */
46
    public function getDirection()
47
    {
48
        return $this->direction;
49
    }
50
51
    /**
52
     * @param string $direction
53
     */
54
    public function setDirection($direction)
55
    {
56
        $this->direction = $direction;
57
    }
58
}
59