Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / consolidation / robo / src / Contract / RollbackInterface.php
diff --git a/vendor/consolidation/robo/src/Contract/RollbackInterface.php b/vendor/consolidation/robo/src/Contract/RollbackInterface.php
new file mode 100644 (file)
index 0000000..394822c
--- /dev/null
@@ -0,0 +1,18 @@
+<?php
+namespace Robo\Contract;
+
+/**
+ * Any Robo tasks that implements this interface will
+ * be called when the task collection it is added to
+ * fails, and runs its rollback operation.
+ *
+ * Interface RollbackInterface
+ * @package Robo\Contract
+ */
+interface RollbackInterface extends TaskInterface
+{
+    /**
+     * Revert an operation that can be rolled back
+     */
+    public function rollback();
+}