public function incrementValue() { parent::incrementValue(); if ($this->getValue() > 255) { $this->setValue(0); } }