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

ValidationSuccessResult   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A preventNextChecks() 0 3 1
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