mirror of
https://github.com/nextcloud/server.git
synced 2026-06-16 20:19:48 -04:00
Use more ideomatic code and use helper functions that exists where possible. It seems notnull must be false for sqlite to store false Otherwise we get a chrash. Co-authored-by: Anna <anna@nextcloud.com> Signed-off-by: Micke Nordin <kano@sunet.se>
24 lines
517 B
PHP
24 lines
517 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
/**
|
|
* SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
|
|
namespace OCA\CloudFederationAPI\Events;
|
|
|
|
use OCA\CloudFederationApi\Db\FederatedInvite;
|
|
use OCP\EventDispatcher\Event;
|
|
|
|
class FederatedInviteAcceptedEvent extends Event {
|
|
public function __construct(
|
|
private FederatedInvite $invitation,
|
|
) {
|
|
parent::__construct();
|
|
}
|
|
|
|
public function getInvitation(): FederatedInvite {
|
|
return $this->invitation;
|
|
}
|
|
}
|