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

Column::getOrderable()   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
class Column
5
{
6
    protected $data;
7
    protected $name;
8
    protected $searchable;
9
    protected $orderable;
10
    protected $search;
11
12
    public function __construct($data, $name, $searchable, $orderable, Search $search)
13
    {
14
        $this->data = $data;
15
        $this->name = $name;
16
        $this->searchable = (bool) $searchable;
17
        $this->orderable = (bool) $orderable;
18
        $this->search = $search;
19
    }
20
21
    public function getData()
22
    {
23
        return $this->data;
24
    }
25
26
    public function getOrderable()
27
    {
28
        return $this->orderable;
29
    }
30
31
    public function getSearch()
32
    {
33
        return $this->search;
34
    }
35
36
    public function getSearchable()
37
    {
38
        return $this->searchable;
39
    }
40
}
41