GenericValidator   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A doValidation() 0 2 1
A contraintNeedsValidation() 0 3 1
1
<?php
2
3
namespace ByTIC\MediaLibrary\Validation\Validators;
4
5
use ByTIC\MediaLibrary\Validation\Constraints\ConstraintInterface;
6
7
/**
8
 * Class GenericValidator.
9
 */
10
class GenericValidator extends AbstractValidator
11
{
12
    /**
13
     * @return bool
14
     */
15
    protected function contraintNeedsValidation(): bool
16
    {
17
        return false;
18
    }
19
20
    /**
21
     * @param $value
22
     * @param ConstraintInterface $constraint
23
     *
24
     * @return mixed
25
     */
26
    protected function doValidation()
27
    {
28
    }
29
}
30