2025-10-29 05:44:33 -04:00
|
|
|
<?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\Consumable;
|
|
|
|
|
use OCP\Comments\CommentsEvent;
|
|
|
|
|
use OCP\Comments\IComment;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Class CommentAddedEvent
|
|
|
|
|
*
|
|
|
|
|
* @since 33.0.0
|
|
|
|
|
*/
|
|
|
|
|
#[Consumable(since: '33.0.0')]
|
|
|
|
|
final class CommentAddedEvent extends CommentsEvent {
|
|
|
|
|
/**
|
|
|
|
|
* CommentAddedEvent constructor.
|
2026-04-27 11:57:32 -04:00
|
|
|
*
|
|
|
|
|
* @since 33.0.0
|
2025-10-29 05:44:33 -04:00
|
|
|
*/
|
|
|
|
|
public function __construct(IComment $comment) {
|
|
|
|
|
/** @psalm-suppress DeprecatedConstant */
|
|
|
|
|
parent::__construct(CommentsEvent::EVENT_ADD, $comment);
|
|
|
|
|
}
|
|
|
|
|
}
|