min = $min; } function setMax($max) { $this->max = $max; } function apply(SQLQuery $query) { $query->where("{$this->getDbName()} >= {$this->min} AND {$this->getDbName()} <= {$this->max}"); } } ?>