示例#1
0
 /**
  * @param Calendar $calendar
  *
  * @return string
  */
 protected function buildCalendarName(Calendar $calendar)
 {
     $name = $calendar->getName();
     if (!$name) {
         $name = $this->entityNameResolver->getName($calendar->getOwner());
     }
     return $name;
 }
 /**
  * @param Calendar $calendar
  *
  * @return string
  */
 protected function buildCalendarName(Calendar $calendar)
 {
     return $calendar->getName() ?: $this->entityNameResolver->getName($calendar->getOwner());
 }
示例#3
0
 public function testToString()
 {
     $obj = new Calendar();
     $obj->setName('testName');
     $this->assertEquals($obj->getName(), (string) $obj);
 }