ISpecificOperation.php 755 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OCP\WorkflowEngine;
  8. /**
  9. * Interface ISpecificOperation
  10. *
  11. * This interface represents an operator that is designed to work with exactly
  12. * one entity type.
  13. *
  14. * In almost all of the cases it is not necessary to have this limitation,
  15. * because the action is not connected to the event. This mechanism suits
  16. * special cases.
  17. *
  18. * @since 18.0.0
  19. */
  20. interface ISpecificOperation extends IOperation {
  21. /**
  22. * returns the id of the entity the operator is designed for
  23. *
  24. * Example: 'WorkflowEngine_Entity_File'
  25. *
  26. * @since 18.0.0
  27. */
  28. public function getEntityId():string;
  29. }