public function findAllByWeek(\DateTime $date) { $monday = DatesTransformer::toMonday($date)->setTime(0, 0); $sunday = DatesTransformer::toSunday($date)->setTime(0, 0); return $this->findAllByDates($monday, $sunday); }
public function getWeekSheetDays(\DateTime $date) { $first_day = DatesTransformer::toMonday($date); $last_day = DatesTransformer::toSunday($date); return DatesTransformer::getAllDaysBetween($first_day, $last_day); }