function hasAttendant(SLN_Wrapper_Attendant $attendant) { return $this->getAttendantId() == $attendant->getId(); }
public function hasAttendant(SLN_Wrapper_Attendant $attendant) { return isset($this->data['attendant']) && $attendant->getId() == $this->data['attendant']; }
public function validateAttendant(SLN_Wrapper_Attendant $attendant) { if ($attendant->isNotAvailableOnDate($this->date)) { return array(__('This assistant is not available ', 'sln') . $attendant->getNotAvailableString()); } $ids = $this->getDayBookings()->countAttendantsByHour(); if (isset($ids[$attendant->getId()])) { return array(__('This assistant is unavailable during this period', 'sln') . $attendant->getNotAvailableString()); } }