Completed
Pull Request — 1.x (#9)
by Dorian
44:57 queued 43:25
created

StrictlyGreaterThanValidator   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 3
c 1
b 0
f 1
lcom 1
cbo 1
dl 0
loc 9
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A validate() 0 6 3
1
<?php
2
namespace MetaHydrator\Validator;
3
4
class StrictlyGreaterThanValidator extends GreaterThanValidator
5
{
6
    public function validate($value, $contextObject = null)
7
    {
8
        if ($value !== null && $value <= $this->min) {
9
            $this->throw();
10
        }
11
    }
12
}
13