public function setIncrement($max = 0) { if ($this->default === null) { $this->setDefault(0); } $this->increment = true; $this->max_value = $max; return $this; }