GreaterOrEqualsTo   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 11
rs 10
c 0
b 0
f 0
wmc 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A isSatisfiedBy() 0 9 2
1
<?php
2
3
namespace Sludio\HelperBundle\Openidconnect\Specification;
4
5
class GreaterOrEqualsTo extends AbstractSpecification
6
{
7
    public function isSatisfiedBy($expectedValue, $actualValue = null)
8
    {
9
        if ($actualValue >= $expectedValue) {
10
            return true;
11
        }
12
13
        $this->message = sprintf('%s is invalid as it is not greater than %s', $actualValue, $expectedValue);
14
15
        return false;
16
    }
17
}
18