{
const DAY = 1;
const NIGHT = 2;
+ const ADMINISTRATOR_8_17 = 5;
+ const ADMINISTRATOR_9_18 = 8;
private array $hours = [];
}
public static function getShiftIdsByShiftType ($shiftType) {
- return $shiftType == 0 ? [1, 2, 5, 8] : ($shiftType == 1 ? [1, 5, 8] : [2]);
+ return $shiftType == 0 ? [self::DAY, self::NIGHT, self::ADMINISTRATOR_8_17, self::ADMINISTRATOR_9_18] : ($shiftType == self::DAY ? [self::DAY, self::ADMINISTRATOR_8_17, self::ADMINISTRATOR_9_18] : [self::NIGHT]);
}
}
\ No newline at end of file