Code Duplication    Length = 18-18 lines in 2 locations

Constraint/GreaterThanEqual.php 1 location

@@ 18-35 (lines=18) @@
15
 *
16
 * @author Karel Osorio Ramírez <[email protected]>
17
 */
18
class GreaterThanEqual extends RelationalOperator
19
{
20
    /**
21
     * {@inheritdoc}
22
     */
23
    public function evaluate($value)
24
    {
25
        return $this->comparison($value) >= 0;
26
    }
27
28
    /**
29
     * {@inheritdoc}
30
     */
31
    public function not()
32
    {
33
        return new LessThan($this->left(), $this->right());
34
    }
35
}
36

Constraint/LessThan.php 1 location

@@ 18-35 (lines=18) @@
15
 *
16
 * @author Karel Osorio Ramírez <[email protected]>
17
 */
18
class LessThan extends RelationalOperator
19
{
20
    /**
21
     * {@inheritdoc}
22
     */
23
    public function evaluate($value)
24
    {
25
        return $this->comparison($value) === -1;
26
    }
27
28
    /**
29
     * {@inheritdoc}
30
     */
31
    public function not()
32
    {
33
        return new GreaterThanEqual($this->left(), $this->right());
34
    }
35
}
36