2019-08-09 07:24:48 -04:00
|
|
|
<?php
|
2019-12-03 13:57:53 -05:00
|
|
|
|
2019-08-09 07:24:48 -04:00
|
|
|
declare(strict_types=1);
|
2019-12-03 13:57:53 -05:00
|
|
|
|
2019-08-09 07:24:48 -04:00
|
|
|
/**
|
2024-05-23 03:26:56 -04:00
|
|
|
* SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2019-08-09 07:24:48 -04:00
|
|
|
*/
|
|
|
|
|
namespace OCP\WorkflowEngine;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Interface IEntityEvent
|
|
|
|
|
*
|
2023-05-10 05:56:34 -04:00
|
|
|
* represents an entity event that is dispatched via EventDispatcher
|
2019-08-09 07:24:48 -04:00
|
|
|
*
|
2019-08-22 05:00:59 -04:00
|
|
|
*
|
|
|
|
|
* @since 18.0.0
|
2019-08-09 07:24:48 -04:00
|
|
|
*/
|
|
|
|
|
interface IEntityEvent {
|
|
|
|
|
/**
|
|
|
|
|
* returns a translated name to be presented in the web interface.
|
|
|
|
|
*
|
|
|
|
|
* Example: "created" (en), "kreita" (eo)
|
|
|
|
|
*
|
|
|
|
|
* @since 18.0.0
|
|
|
|
|
*/
|
|
|
|
|
public function getDisplayName(): string;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* returns the event name that is emitted by the EventDispatcher, e.g.:
|
|
|
|
|
*
|
|
|
|
|
* Example: "OCA\MyApp\Factory\Cats::postCreated"
|
|
|
|
|
*
|
|
|
|
|
* @since 18.0.0
|
|
|
|
|
*/
|
|
|
|
|
public function getEventName(): string;
|
|
|
|
|
}
|