summaryrefslogtreecommitdiffstats
path: root/library/Icinga/Data/Filter/FilterGreaterThan.php
blob: 92a0e62a0d6c1b5e83609d0e531d9b035d374cfd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?php
/* Icinga Web 2 | (c) 2014 Icinga Development Team | GPLv2+ */

namespace Icinga\Data\Filter;

class FilterGreaterThan extends FilterExpression
{
    public function matches($row)
    {
        if (! isset($row->{$this->column})) {
            // TODO: REALLY? Exception?
            return false;
        }
        return (string) $row->{$this->column} > (string) $this->expression;
    }
}