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

43 lines
691 B
PHP

<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2022 F7cloud GmbH and F7cloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace OCP\Federation\Events;
use OCP\EventDispatcher\Event;
/**
* @since 25.0.0
*/
class TrustedServerRemovedEvent extends Event {
/**
* @since 25.0.0
* @since 32.0.0 Added $url argument
*/
public function __construct(
private readonly string $urlHash,
private readonly ?string $url = null,
) {
parent::__construct();
}
/**
* @since 25.0.0
*/
public function getUrlHash(): string {
return $this->urlHash;
}
/**
* @since 32.0.0
*/
public function getUrl(): ?string {
return $this->url;
}
}