Ejemplo n.º 1
0
 protected function getEvent()
 {
     $email = new Email('*****@*****.**');
     $twitter = new Twitter('@PHPMiNDS');
     $startDate = '2017-03-10';
     $startTime = '20:00';
     $eventDuration = 'PT2H';
     $speaker = new Speaker('AnAwesome', 'Speaker', $email, $twitter);
     $speaker->setId(300);
     $talk = new Talk('A title', 'A description. But I think we need a much longer description in order for joind.in to accept this talk...', $speaker, $eventDuration);
     $talk->setId(200);
     $venue = new Venue('JH', 'by the sidewalk', 'Europe');
     $venue->setId(100);
     $supporter = new Supporter('a big fan', 'youareawso.me', $twitter, $email, 'http://nolo.go');
     $supporter->setId(350);
     return new Event($talk, $startDate, $startTime, $venue, $supporter);
 }
Ejemplo n.º 2
0
 public function getEndDate()
 {
     return $this->date->add($this->talk->getDuration());
 }