GetsSetsPrint   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 6
dl 0
loc 13
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0
wmc 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A print() 0 9 2
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Conia\Quma;
6
7
trait GetsSetsPrint
8
{
9
    protected bool $print;
10
11 71
    public function print(bool $print = false): bool
12
    {
13
        // Normally this is bad practise but setting print should
14
        // only be used for debugging purposes
15 71
        if (func_num_args() > 0) {
16 4
            $this->print = $print;
17
        }
18
19 71
        return $this->print;
20
    }
21
}
22