blob: d2a5b8ad2d193ea22a8666b0b966200ecc526da5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace OCA\DAV\Model;
use Sabre\VObject\Component\VCalendar;
/**
* Simple DTO to store a parsed example event and its UID.
*/
final class ExampleEvent {
public function __construct(
private readonly VCalendar $vCalendar,
private readonly string $uid,
) {
}
public function getUid(): string {
return $this->uid;
}
public function getIcs(): string {
return $this->vCalendar->serialize();
}
}
|