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

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