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

Column   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 5
eloc 15
dl 0
loc 35
rs 10
c 0
b 0
f 0

5 Methods

Rating   Name   Duplication   Size   Complexity  
A getSearch() 0 3 1
A getSearchable() 0 3 1
A getOrderable() 0 3 1
A __construct() 0 7 1
A getData() 0 3 1
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