Passed
Push — master ( 39136d...c199ca )
by Smoren
02:15
created

ValidationSuccessResult::preventNextChecks()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
1
<?php
2
3
namespace Smoren\Validator\Structs;
4
5
use Smoren\Validator\Interfaces\ValidationResultInterface;
6
7
class ValidationSuccessResult implements ValidationResultInterface
8
{
9
    protected bool $preventNextChecks;
10
11
    /**
12
     * @param bool $preventNextChecks
13
     */
14 68
    public function __construct(bool $preventNextChecks)
15
    {
16 68
        $this->preventNextChecks = $preventNextChecks;
17
    }
18
19
    /**
20
     * {@inheritDoc}
21
     */
22 68
    public function preventNextChecks(): bool
23
    {
24 68
        return $this->preventNextChecks;
25
    }
26
}
27