2025-01-08 15:08:15 -05:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
namespace OC\Calendar;
|
|
|
|
|
|
|
|
|
|
use OCP\Calendar\IAvailabilityResult;
|
|
|
|
|
|
|
|
|
|
class AvailabilityResult implements IAvailabilityResult {
|
|
|
|
|
public function __construct(
|
|
|
|
|
private readonly string $attendee,
|
|
|
|
|
private readonly bool $available,
|
|
|
|
|
) {
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-28 13:36:04 -04:00
|
|
|
#[\Override]
|
2025-01-08 15:08:15 -05:00
|
|
|
public function getAttendeeEmail(): string {
|
|
|
|
|
return $this->attendee;
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-28 13:36:04 -04:00
|
|
|
#[\Override]
|
2025-01-08 15:08:15 -05:00
|
|
|
public function isAvailable(): bool {
|
|
|
|
|
return $this->available;
|
|
|
|
|
}
|
|
|
|
|
}
|