settings = [ 'max' => $max ]; } } public function isValid($value) { if ($value > $this->getSetting('max', PHP_INT_MAX)) { $this->clearMessages(); return true; } else { $this->addMessage( $this->translate('%s is not greater than %d'), $value, $this->getSetting('max', PHP_INT_MAX) ); return false; } } }