/** * To string * * @return string */ public function __toString() { $result = 'New EventGroup'; if (null !== $this->event && null !== $this->group) { $result = $this->event->getName() . ' - ' . $this->group->getName(); } return $result; }
/** * Test an empty Genre entity */ public function testEmptyUser() { $event = new Event(); $this->assertNull($event->getId()); $this->assertNull($event->getName()); $this->assertNull($event->getDescription()); $this->assertNull($event->getCountry()); $this->assertNull($event->getCity()); $this->assertNull($event->getAddress()); $this->assertNull($event->getBeginAt()); $this->assertNull($event->getEndAt()); $this->assertNull($event->getSlug()); $this->assertNull($event->getCreatedBy()); $this->assertNull($event->getUpdatedBy()); }
/** * {@inheritDoc} */ public function getName() { $this->__initializer__ && $this->__initializer__->__invoke($this, 'getName', []); return parent::getName(); }