diff options
Diffstat (limited to 'lib/public/IEventSourceFactory.php')
-rw-r--r-- | lib/public/IEventSourceFactory.php | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/lib/public/IEventSourceFactory.php b/lib/public/IEventSourceFactory.php new file mode 100644 index 00000000000..0f6b447c0af --- /dev/null +++ b/lib/public/IEventSourceFactory.php @@ -0,0 +1,22 @@ +<?php + +declare(strict_types=1); + +/** + * SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors + * SPDX-License-Identifier: AGPL-3.0-or-later + */ +namespace OCP; + +/** + * @since 28.0.0 + */ +interface IEventSourceFactory { + /** + * Create a new event source + * + * @return IEventSource + * @since 28.0.0 + */ + public function create(): IEventSource; +} |