123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- <?php
- declare(strict_types=1);
- namespace OCA\DAV\CalDAV;
- use JsonSerializable;
- use OCA\DAV\ResponseDefinitions;
- class UpcomingEvent implements JsonSerializable {
- public function __construct(
- private string $uri,
- private ?int $recurrenceId,
- private string $calendarUri,
- private ?int $start,
- private ?string $summary,
- private ?string $location,
- private ?string $calendarAppUrl,
- ) {
- }
- public function getUri(): string {
- return $this->uri;
- }
- public function getRecurrenceId(): ?int {
- return $this->recurrenceId;
- }
- public function getCalendarUri(): string {
- return $this->calendarUri;
- }
- public function getStart(): ?int {
- return $this->start;
- }
- public function getSummary(): ?string {
- return $this->summary;
- }
- public function getLocation(): ?string {
- return $this->location;
- }
- public function getCalendarAppUrl(): ?string {
- return $this->calendarAppUrl;
- }
-
- public function jsonSerialize(): array {
- return [
- 'uri' => $this->uri,
- 'recurrenceId' => $this->recurrenceId,
- 'calendarUri' => $this->calendarUri,
- 'start' => $this->start,
- 'summary' => $this->summary,
- 'location' => $this->location,
- 'calendarAppUrl' => $this->calendarAppUrl,
- ];
- }
- }
|