Column   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Importance

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

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