]> git.mxchange.org Git - hub.git/blobdiff - application/hub/interfaces/package/class_Deliverable.php
Package class renamed, continued (sorry for lame description)
[hub.git] / application / hub / interfaces / package / class_Deliverable.php
index 072bcd765d6cd5e1c412cdcb2c2fa88877b72e42..a3bd1ad73d216227376c6cfd97ae8aa2e9eee117 100644 (file)
@@ -30,6 +30,25 @@ interface Deliverable extends FrameworkInterface {
         * @return      void
         */
        function enqueueRawDataFromTemplate (BaseHubHelper $helperInstance);
+
+       /**
+        * Checks wether a package has been enqueued for delivery.
+        *
+        * @return      $isEnqueued             Wether a package is enqueued
+        */
+       function isPackageEnqueued ();
+
+       /**
+        * Delivers an enqueued package to the stated destination. If none is
+        * provided, the registered helper class is being iterated until no target
+        * is left. This allows that a single package is being delivered to multiple
+        * targets without enqueueing it for every target. If no target is provided
+        * or it can't be determined a NoTargetException is being thrown.
+        *
+        * @return      void
+        * @throws      NoTargetException       If no target can't be determined
+        */
+       function deliverEnqueuedPackage ();
 }
 
 // [EOF]