Exemplo n.º 1
0
 public function __toString()
 {
     $name = $this->getName();
     $parent = parent::__toString();
     return $name ?: $parent;
 }