TTemplateError   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
dl 0
loc 13
ccs 4
cts 4
cp 1
rs 10
c 1
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setTemplateError() 0 3 1
A getTemplateError() 0 3 1
1
<?php
2
3
namespace kalanis\kw_forms\Controls;
4
5
6
/**
7
 * Trait TTemplateError
8
 * @package kalanis\kw_forms\Controls
9
 */
10
trait TTemplateError
11
{
12
    // 1 text
13
    protected string $templateError = '%s';
14
15 1
    public function getTemplateError(): string
16
    {
17 1
        return $this->templateError;
18
    }
19
20 2
    public function setTemplateError(string $templateError): void
21
    {
22 2
        $this->templateError = $templateError;
23 2
    }
24
}
25