Passed
Push — master ( c85748...2fd0ab )
by Petr
08:11
created

TFormat   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 5
c 0
b 0
f 0
dl 0
loc 14
ccs 5
cts 5
cp 1
rs 10
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
    /** @var string */
13
    protected $format = '';
14
15 25
    public function setFormat(string $formatClass): self
16
    {
17 25
        $this->format = $formatClass;
18 25
        return $this;
19
    }
20
21 18
    public function getFormat(): string
22
    {
23 18
        return $this->format;
24
    }
25
}
26