public function getEventsFromMonth($year, $month) { $events = []; $workingTimes = self::convertWorkingTimesToEvents($this->workingTimesDao->getWorkingTimesByMonth(2, $year, $month)); $orderEvents = self::convertOrdersToEvents($this->orderDao->getOrdersByMonth(2, $year, $month)); $events = array_merge($events, $workingTimes, $orderEvents); return $events; }
public function deleteDayWorkingTimes(\DateTime $date, $doctorId = 0) { //TODO Ashto $doctorId focus :) $doctorId = 2; return $this->workingTimesDao->deleteDayWorkingTimes($doctorId, $date); }