Passed
Push — master ( 6d694d...2e50a1 )
by Petr
02:58
created

DirectionAsResponseTrait   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A setDirectionAsResponse() 0 4 1
1
<?php
2
3
/**
4
 * This file is part of riesenia/pohoda package.
5
 *
6
 * Licensed under the MIT License
7
 * (c) RIESENIA.com
8
 */
9
10
declare(strict_types=1);
11
12
namespace Riesenia\Pohoda\Common;
13
14
trait DirectionAsResponseTrait
15
{
16
    protected bool $directionAsResponse = false;
17
18 1
    public function setDirectionAsResponse(bool $value): self
19
    {
20 1
        $this->directionAsResponse = $value;
21 1
        return $this;
22
    }
23
}
24