2022-06-24 09:24:16 -04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
|
|
/**
|
2024-05-23 03:26:56 -04:00
|
|
|
* SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2022-06-24 09:24:16 -04:00
|
|
|
*/
|
|
|
|
|
namespace OCP\Federation\Events;
|
|
|
|
|
|
|
|
|
|
use OCP\EventDispatcher\Event;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @since 25.0.0
|
|
|
|
|
*/
|
|
|
|
|
class TrustedServerRemovedEvent extends Event {
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @since 25.0.0
|
2025-07-02 06:32:45 -04:00
|
|
|
* @since 32.0.0 Added $url argument
|
2022-06-24 09:24:16 -04:00
|
|
|
*/
|
2025-07-02 06:32:45 -04:00
|
|
|
public function __construct(
|
|
|
|
|
private readonly string $urlHash,
|
|
|
|
|
private readonly ?string $url = null,
|
|
|
|
|
) {
|
2022-06-24 09:24:16 -04:00
|
|
|
parent::__construct();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @since 25.0.0
|
|
|
|
|
*/
|
|
|
|
|
public function getUrlHash(): string {
|
|
|
|
|
return $this->urlHash;
|
|
|
|
|
}
|
2025-07-02 06:32:45 -04:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @since 32.0.0
|
|
|
|
|
*/
|
|
|
|
|
public function getUrl(): ?string {
|
|
|
|
|
return $this->url;
|
|
|
|
|
}
|
2022-06-24 09:24:16 -04:00
|
|
|
}
|