mirror of
https://github.com/nextcloud/server.git
synced 2026-11-25 15:16:20 +01:00
Assisted-by: ClaudeCode:claude-opus-5-5 Signed-off-by: Daniel Kesselberg <3902676+kesselb@users.noreply.github.com>
32 lines
700 B
PHP
32 lines
700 B
PHP
<?php
|
|
|
|
/**
|
|
* SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
|
|
* SPDX-FileCopyrightText: 2016 ownCloud, Inc.
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
|
|
namespace OCP\Comments\Events;
|
|
|
|
use OCP\AppFramework\Attribute\Listenable;
|
|
use OCP\Comments\CommentsEvent;
|
|
use OCP\Comments\IComment;
|
|
|
|
/**
|
|
* Class BeforeCommentAddedEvent
|
|
*
|
|
* @since 33.0.0
|
|
*/
|
|
#[Listenable(since: '33.0.0')]
|
|
final class BeforeCommentUpdatedEvent extends CommentsEvent {
|
|
/**
|
|
* CommentEvent constructor.
|
|
*
|
|
* @since 33.0.0
|
|
*/
|
|
public function __construct(IComment $comment) {
|
|
/** @psalm-suppress DeprecatedConstant */
|
|
parent::__construct(CommentsEvent::EVENT_PRE_UPDATE, $comment);
|
|
}
|
|
}
|