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

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