Strict   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A nonStrict() 0 5 1
A strict() 0 5 1
1
<?php
2
declare(strict_types=1);
3
4
namespace InputGuard\Guards\Bases;
5
6
trait Strict
7
{
8
    /**
9
     * @var bool
10
     */
11
    private $strict = false;
12
13 21
    public function strict(): self
14
    {
15 21
        $this->strict = true;
16
17 21
        return $this;
18
    }
19
20 5
    public function nonStrict(): self
21
    {
22 5
        $this->strict = false;
23
24 5
        return $this;
25
    }
26
}
27