TFormat   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getFormat() 0 3 1
A setFormat() 0 4 1
1
<?php
2
3
namespace kalanis\kw_mapper\Storage\Shared;
4
5
6
/**
7
 * Trait TFormat
8
 * @package kalanis\kw_mapper\Storage\Shared
9
 */
10
trait TFormat
11
{
12
    protected string $format = '';
13
14 25
    public function setFormat(string $formatClass): self
15
    {
16 25
        $this->format = $formatClass;
17 25
        return $this;
18
    }
19
20 19
    public function getFormat(): string
21
    {
22 19
        return $this->format;
23
    }
24
}
25