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