nextcloud/lib/public/Files/Cache/CacheEntriesRemovedEvent.php
Daniel Kesselberg 25ca85e329
docs(ocp): Add since tag
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2026-04-28 11:17:27 +02:00

39 lines
829 B
PHP

<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace OCP\Files\Cache;
use OCP\AppFramework\Attribute\Listenable;
use OCP\EventDispatcher\Event;
/**
* Meta-event wrapping multiple CacheEntryRemovedEvent for when an existing
* entry in the cache gets removed.
*
* @since 34.0.0
*/
#[Listenable(since: '34.0.0')]
class CacheEntriesRemovedEvent extends Event {
/**
* @param ICacheEvent[] $cacheEntryRemovedEvents
* @since 34.0.0
*/
public function __construct(
private readonly array $cacheEntryRemovedEvents,
) {
Event::__construct();
}
/**
* @return ICacheEvent[]
* @since 34.0.0
*/
public function getCacheEntryRemovedEvents(): array {
return $this->cacheEntryRemovedEvents;
}
}