Permalink
Browse files

add interfaces for proccesing and getting the processed value

  • Loading branch information...
1 parent ab82974 commit 98b8c3f21c793efab727dc58b2e68468313937a0 @iampersistent iampersistent committed Nov 26, 2012
Showing with 15 additions and 0 deletions.
  1. +15 −0 lib/Vespolina/Entity/Pricing/PricingElementInterface.php
@@ -10,6 +10,14 @@
interface PricingElementInterface
{
/**
+ * Process this pricing element. The results are passed back and also available with a call to getValue(). A null is
+ * returned on failure
+ *
+ * @return mixed
+ */
+ function process();
+
+ /**
* Set the order of this element being processed. If the order is not set, it is saved until the end of the
* processing to be executed. The higher the number, the later it is executed.
*
@@ -23,4 +31,11 @@ function setOrder($order);
* @return int
*/
function getOrder();
+
+ /**
+ * Return the processed value of this PricingElement.
+ *
+ * @return mixed
+ */
+ function getValue();
}

0 comments on commit 98b8c3f

Please sign in to comment.