Completed
Pull Request — master (#7)
by Albert
02:45
created

Required::verdict()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 10
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 10
ccs 5
cts 5
cp 1
rs 9.4285
c 0
b 0
f 0
cc 2
eloc 5
nc 2
nop 1
crap 2
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Albert221\Validation\Rule;
6
7
use Albert221\Validation\Verdict;
8
use Albert221\Validation\VerdictInterface;
9
10
/**
11
 * Required validates whether given value is considered as existing or not.
12
 */
13
class Required extends Rule
14
{
15
    protected $message = 'This field is required.';
16
}
17