| 1 | <?php |
||
| 12 | class ReminderCollection implements CreatableFromArray |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var AutomaticReminder[] |
||
| 16 | */ |
||
| 17 | private $reminders; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @param AutomaticReminder[] $reminders |
||
| 21 | */ |
||
| 22 | 5 | public function __construct(array $reminders) |
|
| 26 | |||
| 27 | 5 | public static function createFromArray(array $data) |
|
| 38 | |||
| 39 | /** |
||
| 40 | * @return AutomaticReminder[] |
||
| 41 | */ |
||
| 42 | 2 | public function getReminders(): array |
|
| 46 | |||
| 47 | 2 | public function toArray() |
|
| 56 | } |
||
| 57 |