| 1 | <?php |
||
| 25 | class Recipients extends ArrayCollection |
||
| 26 | { |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Instantiate a Recipients object. |
||
| 30 | * |
||
| 31 | * @param array $emails Array of email addresses and/or recipients. |
||
| 32 | */ |
||
| 33 | 8 | public function __construct(array $emails) |
|
| 38 | |||
| 39 | /** |
||
| 40 | * Add an email address to the Recipients collection. |
||
| 41 | * |
||
| 42 | * @param Recipients|EmailAddress|array|string $email Email address to add. |
||
| 43 | * |
||
| 44 | * @return static |
||
| 45 | */ |
||
| 46 | 8 | public function add($email) |
|
| 64 | } |