Total Complexity | 4 |
Total Lines | 48 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
13 | trait HeaderTrait |
||
14 | { |
||
15 | /** |
||
16 | * Column's Header |
||
17 | * @var string |
||
18 | */ |
||
19 | protected $title = ''; |
||
20 | |||
21 | /** |
||
22 | * Column's width |
||
23 | * @var int |
||
24 | */ |
||
25 | protected $width = 0; |
||
26 | |||
27 | /** |
||
28 | * @return string |
||
29 | */ |
||
30 | public function getTitle(): string |
||
31 | { |
||
32 | return $this->title; |
||
33 | } |
||
34 | |||
35 | /** |
||
36 | * @param string $title |
||
37 | * @return |
||
38 | */ |
||
39 | public function setTitle(string $title) : self |
||
43 | } |
||
44 | |||
45 | /** |
||
46 | * @return int |
||
47 | */ |
||
48 | public function getWidth(): int |
||
51 | } |
||
52 | |||
53 | /** |
||
54 | * @param int $width |
||
55 | * @return |
||
56 | */ |
||
57 | public function setWidth(int $width) : self |
||
63 |