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

TFormat::setFormat()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

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