/** * @param Attendee $attendee */ public function confirm(Attendee $attendee) { $attendee->setStatus(Attendee::APPROVED); $attendee->setArrived(true); $this->repository->update($attendee); }
/** * @param Event $event * @return array */ public function getSummary(Event $event) { return array('inscritos' => $this->repository->getCountOfActiveAttendee($event), 'presentes' => $this->repository->getCountOfArrivedAttendee($event)); }