maxValue = $maxValue; $this->inclusive = $inclusive; } public function validate($input) { if ($this->inclusive) { return $input <= $this->maxValue; } else { return $input < $this->maxValue; } } }