diff --git a/ActionHandler/ActionHandlerInterface.php b/ActionHandler/ActionHandlerInterface.php index 91aa8aba..e51c5e3a 100644 --- a/ActionHandler/ActionHandlerInterface.php +++ b/ActionHandler/ActionHandlerInterface.php @@ -4,6 +4,10 @@ interface ActionHandlerInterface { + public function getConditions(); + + public function getListens(); + public function getConfiguration(); public function run(array $data, array $configuration); diff --git a/ActionHandler/RequestCollectionHandler.php b/ActionHandler/RequestCollectionHandler.php index 7ae4cb87..5889f638 100644 --- a/ActionHandler/RequestCollectionHandler.php +++ b/ActionHandler/RequestCollectionHandler.php @@ -13,6 +13,18 @@ public function __construct(RequestService $requestService) $this->requestService = $requestService; } + public function getConditions() + { + return ['==' => [1, 1]]; + } + + public function getListens() + { + return [ + 'none', + ]; + } + /** * This function returns the required configuration as a [json-schema](https://json-schema.org/) array. * diff --git a/ActionHandler/RequestItemHandler.php b/ActionHandler/RequestItemHandler.php index 5e3d3c93..95fb745c 100644 --- a/ActionHandler/RequestItemHandler.php +++ b/ActionHandler/RequestItemHandler.php @@ -13,6 +13,18 @@ public function __construct(RequestService $requestService) $this->requestService = $requestService; } + public function getConditions() + { + return ['==' => [1, 1]]; + } + + public function getListens() + { + return [ + 'none', + ]; + } + /** * This function returns the required configuration as a [json-schema](https://json-schema.org/) array. * diff --git a/ActionHandler/RequestSearchHandler.php b/ActionHandler/RequestSearchHandler.php index 4253c382..252ef980 100644 --- a/ActionHandler/RequestSearchHandler.php +++ b/ActionHandler/RequestSearchHandler.php @@ -13,6 +13,18 @@ public function __construct(RequestService $requestService) $this->requestService = $requestService; } + public function getConditions() + { + return ['==' => [1, 1]]; + } + + public function getListens() + { + return [ + 'none', + ]; + } + /** * This function returns the required configuration as a [json-schema](https://json-schema.org/) array. *