Spot\Query::getWhereOperatorCallable PHP Method

getWhereOperatorCallable() private method

private getWhereOperatorCallable ( string $operator ) : callable | false
$operator string
return callable | false
    private function getWhereOperatorCallable($operator)
    {
        if (!isset(static::$_whereOperators[$operator])) {
            return false;
        }
        if (is_callable(static::$_whereOperators[$operator])) {
            return static::$_whereOperators[$operator];
        }
        if (!isset(static::$_whereOperatorObjects[$operator])) {
            static::$_whereOperatorObjects[$operator] = new static::$_whereOperators[$operator]();
        }
        return static::$_whereOperatorObjects[$operator];
    }