Passed
Push — master ( f17b13...8bf1e0 )
by Radu
01:33
created

Request::getLength()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
namespace WebServCo\Framework\DataTables;
3
4
use WebServCo\Framework\ArrayObject\Items;
5
6
class Request
7
{
8
    protected $draw;
9
10
    protected $columns;
11
12
    protected $order;
13
14
    protected $start;
15
16
    protected $length;
17
18
    protected $search;
19
20
    public function __construct($draw, Items $columns, Items $order, $start, $length, Search $search)
21
    {
22
        $this->draw = (int) $draw;
23
        $this->columns = $columns;
24
        $this->order = $order;
25
        $this->start = (int) $start;
26
        $this->length = (int) $length;
27
        $this->search = $search;
28
    }
29
30
    public function getColumns()
31
    {
32
        return $this->columns->getArrayObject();
33
    }
34
35
    public function getDraw()
36
    {
37
        return $this->draw;
38
    }
39
40
    public function getLength()
41
    {
42
        return $this->length;
43
    }
44
45
    public function getOrder()
46
    {
47
        return $this->order->getArrayObject();
48
    }
49
50
    public function getStart()
51
    {
52
        return $this->start;
53
    }
54
}
55