Total Complexity | 7 |
Total Lines | 62 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
22 | class DataTablesOrder implements DataTablesOrderInterface { |
||
23 | |||
24 | /** |
||
25 | * Column. |
||
26 | * |
||
27 | * @var int|null |
||
28 | */ |
||
29 | private $column; |
||
30 | |||
31 | /** |
||
32 | * Dir. |
||
33 | * |
||
34 | * @var string|null |
||
35 | */ |
||
36 | private $dir; |
||
37 | |||
38 | /** |
||
39 | * Constructor. |
||
40 | */ |
||
41 | public function __construct() { |
||
42 | // NOTHING TO DO |
||
43 | } |
||
44 | |||
45 | /** |
||
46 | * {@inheritDoc} |
||
47 | */ |
||
48 | public function getColumn(): ?int { |
||
49 | return $this->column; |
||
50 | } |
||
51 | |||
52 | /** |
||
53 | * {@inheritDoc} |
||
54 | */ |
||
55 | public function getDir(): ?string { |
||
57 | } |
||
58 | |||
59 | /** |
||
60 | * Set the column. |
||
61 | * |
||
62 | * @param int|null $column The column. |
||
63 | * @return DataTablesOrderInterface Returns this order. |
||
64 | */ |
||
65 | public function setColumn(?int $column): DataTablesOrderInterface { |
||
68 | } |
||
69 | |||
70 | /** |
||
71 | * Set the dir. |
||
72 | * |
||
73 | * @param string|null $dir The dir. |
||
74 | * @return DataTablesOrderInterface Returns this order. |
||
75 | */ |
||
76 | public function setDir(?string $dir): DataTablesOrderInterface { |
||
86 |