public function isReadyToSwitch()
{
$output = false;
switch ($this->color) {
case 'red':
if ($this->onColorFor(self::TIME_RED)) {
$output = true;
}
break;
case 'green':
if ($this->onColorFor(self::TIME_GREEN)) {
$output = true;
}
break;
case 'orange':
if ($this->onColorFor(self::TIME_ORANGE)) {
$output = true;
}
break;
}
return $output;
}