| 1 | <?php |
||
| 22 | class View |
||
| 23 | { |
||
| 24 | /** |
||
| 25 | * @var AddressBook |
||
| 26 | */ |
||
| 27 | private $oAddressBook; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * View constructor. |
||
| 31 | */ |
||
| 32 | 1 | public function __construct() |
|
| 36 | |||
| 37 | /** |
||
| 38 | * @param string $lastName |
||
| 39 | * @param string $number |
||
| 40 | * @param string|null $firstName |
||
| 41 | * @param int $iAccountId |
||
| 42 | * |
||
| 43 | * @return $this |
||
| 44 | */ |
||
| 45 | 1 | public function addContact(string $lastName, string $number, string $firstName = null, int $iAccountId = 1) |
|
| 53 | |||
| 54 | /** |
||
| 55 | * @return string |
||
| 56 | */ |
||
| 57 | 1 | public function asTxt() |
|
| 61 | } |
||
| 62 |