protected function onColorFor($time) { $difference = $this->switch_time + $time; if (time() >= $difference) { return true; } return false; }