nextcloud/lib/private/Calendar/AvailabilityResult.php
Ferdinand Thiessen e0ba4d71b6
chore: add missing Override attribute to OC
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2026-04-28 21:29:27 +02:00

30 lines
570 B
PHP

<?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,
) {
}
#[\Override]
public function getAttendeeEmail(): string {
return $this->attendee;
}
#[\Override]
public function isAvailable(): bool {
return $this->available;
}
}