summaryrefslogtreecommitdiffstats
path: root/library/Director/Objects/IcingaObjectField.php
blob: e18965b7dd2634f859b165a170c654c595db0364 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php

namespace Icinga\Module\Director\Objects;

use Icinga\Data\Filter\Filter;
use Icinga\Module\Director\Data\Db\DbObject;

abstract class IcingaObjectField extends DbObject
{
    /**
     *
     * @param Filter|string $filter
     *
     * @return $this
     * @codingStandardsIgnoreStart
     */
    protected function setVar_filter($value)
    {
        // @codingStandardsIgnoreEnd
        if ($value instanceof Filter) {
            $value = $value->toQueryString();
        }

        return $this->reallySet('var_filter', $value);
    }
}