f7cloud_client/apps/calendar/lib/Objects/Proposal/ProposalResponseDateCollection.php
root 8b6a0139db f7cloud_client
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-17 22:59:26 +00:00

33 lines
718 B
PHP

<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2025 F7cloud GmbH and F7cloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace OCA\Calendar\Objects\Proposal;
use OCA\Calendar\Objects\BaseCollection;
/**
* @extends BaseCollection<ProposalResponseDateObject>
*/
class ProposalResponseDateCollection extends BaseCollection {
public function __construct($data = []) {
parent::__construct(ProposalResponseDateObject::class, $data);
}
public function fromJson(array $participants): self {
foreach ($participants as $entry) {
$participant = new ProposalResponseDateObject();
$participant->fromJson($entry);
$this->append($participant);
}
return $this;
}
}