Completed
Push — master ( 112b7a...450ccc )
by Travis
06:11
created

Strict::strict()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 5
ccs 3
cts 3
cp 1
crap 1
rs 10
c 0
b 0
f 0
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 14
    public function strict(): self
14
    {
15 14
        $this->strict = true;
16
17 14
        return $this;
18
    }
19
20 5
    public function nonStrict(): self
21
    {
22 5
        $this->strict = false;
23
24 5
        return $this;
25
    }
26
}
27