ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
class.ilMailAddressListImpl.php
Go to the documentation of this file.
1<?php declare(strict_types=1);
2/* Copyright (c) 1998-2018 ILIAS open source, Extended GPL, see docs/LICENSE */
3
9{
11 protected $addresses = [];
12
17 public function __construct(array $addresses)
18 {
19 // Ensure valid types in array
20 array_walk($addresses, function (ilMailAddress $address) {
21 });
22
23 $this->addresses = $addresses;
24 }
25
29 public function value() : array
30 {
31 return $this->addresses;
32 }
33}
An exception for terminatinating execution or to throw for unit testing.
Class ilMailAddressListImpl.
__construct(array $addresses)
ilMailAddressListImpl constructor.
Class ilMailAddress.
Interface ilMailAddressList.