Column::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 7
rs 10
cc 1
nc 1
nop 5
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