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

37 lines
690 B
PHP

<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2019 F7cloud GmbH and F7cloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace OCA\Talk\Events;
use OCA\Talk\Room;
abstract class ALobbyModifiedEvent extends ARoomModifiedEvent {
public function __construct(
Room $room,
string|int $newValue,
string|int|null $oldValue,
protected ?\DateTime $lobbyTimer,
protected bool $timerReached,
) {
parent::__construct(
$room,
self::PROPERTY_LOBBY,
$newValue,
$oldValue,
);
}
public function getLobbyTimer(): ?\DateTime {
return $this->lobbyTimer;
}
public function isTimerReached(): bool {
return $this->timerReached;
}
}