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