Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

prepare and fix autoload

  • Loading branch information...
commit 1fbe120b879251788fb12e99d6966b2cbba96f3b 1 parent fa5c333
@cordoval cordoval authored iampersistent committed
View
11 lib/Pricing/Entity/Element/RecurringElement.php
@@ -1,13 +1,8 @@
<?php
-/**
- * (c) 2013 Vespolina Project http://www.vespolina-project.org
- *
- * This source file is subject to the MIT license that is bundled
- * with this source code in the file LICENSE.
- */
-namespace Vespolina\Entity\Pricing\Element;
-use Vespolina\Entity\Pricing\PricingElement;
+namespace ImmersiveLabs\Pricing\Entity\Element;
+
+use ImmersiveLabs\Pricing\Entity\PricingElement;
class RecurringElement extends PricingElement
{
View
11 lib/Pricing/Entity/Element/TotalValueElement.php
@@ -1,13 +1,8 @@
<?php
-/**
- * (c) 2013 Vespolina Project http://www.vespolina-project.org
- *
- * This source file is subject to the MIT license that is bundled
- * with this source code in the file LICENSE.
- */
-namespace Vespolina\Entity\Pricing\Element;
-use Vespolina\Entity\Pricing\PricingElement;
+namespace ImmersiveLabs\Pricing\Entity\Element;
+
+use ImmersiveLabs\Pricing\Entity\PricingElement;
class TotalValueElement extends PricingElement
{
View
8 lib/Pricing/Entity/PricingContext.php
@@ -1,12 +1,6 @@
<?php
-/**
- * (c) 2011-2012 Vespolina Project http://www.vespolina-project.org
- *
- * This source file is subject to the MIT license that is bundled
- * with this source code in the file LICENSE.
- */
-namespace Pricing\Entity;
+namespace ImmersiveLabs\Pricing\Entity;
/**
* PricingContext implements a data container holding price variables needed for calculation
View
30 lib/Pricing/Entity/PricingElement.php
@@ -1,11 +1,6 @@
<?php
-/**
- * (c) 2012 Vespolina Project http://www.vespolina-project.org
- *
- * This source file is subject to the MIT license that is bundled
- * with this source code in the file LICENSE.
- */
-namespace Pricing\Entity;
+
+namespace ImmersiveLabs\Pricing\Entity;
use Vespolina\Entity\Pricing\PricingElementInterface;
use Vespolina\Exception\FunctionNotSupportedException;
@@ -51,4 +46,25 @@ protected function doProcess($context, $processed)
{
throw new FunctionNotSupportedException('process() has not been implemented in ' . get_class($this));
}
+
+ /**
+ * 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.
+ *
+ * @param integer $position
+ */
+ function setPosition($position)
+ {
+ // TODO: Implement setPosition() method.
+ }
+
+ /**
+ * Return the order of this element's execution
+ *
+ * @return integer
+ */
+ function getPosition()
+ {
+ // TODO: Implement getPosition() method.
+ }
}
View
10 lib/Pricing/Entity/PricingSet.php
@@ -1,12 +1,6 @@
<?php
-/**
- * (c) Vespolina Project http://www.vespolina-project.org
- *
- * This source file is subject to the MIT license that is bundled
- * with this source code in the file LICENSE.
- */
-
-namespace Pricing\Entity;
+
+namespace ImmersiveLabs\Pricing\Entity;
use Vespolina\Entity\Pricing\Element\TotalValueElement;
use Vespolina\Entity\Pricing\PricingSetInterface;
View
25 lib/Pricing/Mapping/Entity.PricingElement.orm.yml
@@ -0,0 +1,25 @@
+ImmersiveLabs\Pricing\Entity\PricingElement:
+ type: entity
+ table: pricing_element
+
+ id:
+ id:
+ type: integer
+ generator: { strategy: AUTO }
+
+ fields:
+ netValue:
+ type: float
+ nullable: true
+ name: "net_value"
+ order:
+ type: integer
+ nullable: true
+ name: "processing_order"
+ processed:
+ type: boolean
+ nullable: true
+ value:
+ type: float
+ nullable: true
+ name: "pricing_value"
View
14 lib/Pricing/Mapping/Entity.PricingSet.orm.yml
@@ -0,0 +1,14 @@
+ImmersiveLabs\Pricing\Entity\PricingSet:
+ type: entity
+ table: pricing_set
+
+ id:
+ id:
+ type: integer
+ generator: { strategy: AUTO }
+
+ fields:
+ pricingElements:
+ type: array
+ nullable: true
+ name: "pricing_elements"
Please sign in to comment.
Something went wrong with that request. Please try again.