summaryrefslogtreecommitdiffstats
path: root/library/Icinga/Data/Filter/FilterEqualOrGreaterThan.php
blob: d7bd5b861bc024833997484ce67e4b24a0d81e32 (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 FilterEqualOrGreaterThan extends FilterExpression
{
    public function matches($row)
    {
        if (! isset($row->{$this->column})) {
            return false;
        }

        return (string) $row->{$this->column} >= (string) $this->expression;
    }
}