diff options
author | Joas Schilling <coding@schilljs.com> | 2016-08-19 11:34:45 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2016-08-19 13:23:05 +0300 |
commit | a111181eb32750d9701df3d6025cfe97960ba9f3 (patch) | |
tree | 6c624464db7dfa93d357985fcdcc5a9eeead779c /lib/public/WorkflowEngine/IOperation.php | |
parent | 6d4ede3e84a95340f3a2c51c57384d30d8467f8a (diff) |
Validate the operation
Diffstat (limited to 'lib/public/WorkflowEngine/IOperation.php')
-rw-r--r-- | lib/public/WorkflowEngine/IOperation.php | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/lib/public/WorkflowEngine/IOperation.php b/lib/public/WorkflowEngine/IOperation.php new file mode 100644 index 00000000000..c75e5d940c5 --- /dev/null +++ b/lib/public/WorkflowEngine/IOperation.php @@ -0,0 +1,39 @@ +<?php +/** + * @copyright Copyright (c) 2016 Joas Schilling <coding@schilljs.com> + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ + +namespace OCP\WorkflowEngine; + +/** + * Interface IOperation + * + * @package OCP\WorkflowEngine + * @since 9.1 + */ +interface IOperation { + /** + * @param string $name + * @param array[] $checks + * @param string $operation + * @throws \UnexpectedValueException + * @since 9.1 + */ + public function validateOperation($name, array $checks, $operation); +} |