Passed
Push — master ( 067151...1e051c )
by Petr
13:11
created

OneDirectionalVariablesTrait   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 setDirectionalVariable() 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 OneDirectionalVariablesTrait
15
{
16
    protected bool $useOneDirectionalVariables = false;
17
18 107
    public function setDirectionalVariable(bool $value): self
19
    {
20 107
        $this->useOneDirectionalVariables = $value;
21 107
        return $this;
22
    }
23
}
24