Exemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public function __toString()
 {
     if (null === $this->getContact()) {
         return parent::__toString();
     }
     return $this->getContact()->__toString();
 }
Exemplo n.º 2
0
 public function __toString()
 {
     $str = parent::__toString() . ' ';
     $str .= $this->email . ' ' . $this->firstname . ' ' . $this->surname;
     return (string) $str;
 }
Exemplo n.º 3
0
 public function __toString()
 {
     parent::__toString();
 }
Exemplo n.º 4
0
 public function __toString()
 {
     $name = trim($this->getFirstName() . " " . $this->getLastName());
     return strlen($name) > 0 ? $name : parent::__toString();
 }