Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
mailaddresser.php
1<?php
2
4
6{
7 public function getFullName(): string
8 {
9 if ($this->name || $this->lastName)
10 {
11 return $this->name . ' ' . $this->lastName;
12 }
13
14 return $this->email;
15 }
16 public function getFullNameWithEmail(): string
17 {
18 if ($this->email)
19 {
20 return "{$this->getFullName()} ({$this->email})";
21 }
22
23 return $this->getFullName();
24 }
25}