TableHead   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 3
eloc 6
c 0
b 0
f 0
dl 0
loc 18
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A templatePath() 0 3 1
A setData() 0 4 1
A fillInputs() 0 3 1
1
<?php
2
3
namespace kalanis\kw_table\output_kw\Html;
4
5
6
use kalanis\kw_templates\ATemplate;
7
use kalanis\kw_templates\Template\TFile;
8
9
10
class TableHead extends ATemplate
11
{
12
    use TFile;
13
14
    protected function templatePath(): string
15
    {
16
        return __DIR__ . '/../../shared-templates/table-head.html';
17
    }
18
19
    protected function fillInputs(): void
20
    {
21
        $this->addInput('{HEAD_CONTENT}');
22
    }
23
24
    public function setData(string $headContent): self
25
    {
26
        $this->updateItem('{HEAD_CONTENT}', $headContent);
27
        return $this;
28
    }
29
}
30