TableHead::templatePath()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

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