Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

pricing sets updates

  • Loading branch information...
commit 8a103fbdfcbdffbb2d17a077a1fdb86f40617430 1 parent 84e1aa6
Theodor Diaconu theodorDiaconu authored iampersistent committed
2  lib/Vespolina/Entity/Order/Item.php
View
@@ -156,7 +156,7 @@ public function setParent(OrderInterface $parent)
/**
* @inheritdoc
*/
- public function setPricing(PricingSetInterface $pricingSet)
+ public function setPricing($pricingSet)
{
$this->pricingSet = $pricingSet;
}
10 lib/Vespolina/Entity/Order/ItemInterface.php
View
@@ -99,28 +99,26 @@ function getParent();
/**
* Set the parent order for this item
*
- * @param Vespolina\Entity\Order\OrderInterface $parent
+ * @param \Vespolina\Entity\Order\OrderInterface $parent
*/
function setParent(OrderInterface $parent);
/**
* Set a pricing set for this item
- *
- * @param Vespolina\Entity\Pricing\PricingSetInterface $pricingSet
*/
- function setPricing(PricingSetInterface $pricingSet);
+ function setPricing($pricingSet);
/**
* Return the pricing set for this item
*
- * @return Vespolina\Pricing\PricingSetInterface|null
+ * @return \Vespolina\Entity\Pricing\PricingSetInterface|null
*/
function getPricing();
/**
* Return the product for this item
*
- * @return Vespolina\Entity\ProductInterface
+ * @return \Vespolina\Entity\Product\ProductInterface
*/
function getProduct();
4 lib/Vespolina/Entity/Order/OrderInterface.php
View
@@ -151,6 +151,10 @@ function setState($state);
*/
function getState();
+ function setPricing($pricingSet);
+
+ function getPricing();
+
/**
* Set the total price for the order
*
6 lib/Vespolina/Entity/Product/BaseProduct.php
View
@@ -37,11 +37,11 @@
protected $taxonomies;
protected $type;
protected $updatedAt;
- protected $pricingSet;
+ protected $pricingSet = array();
/**
* @param $pricingSet
- * @return \Vespolina\Entity\Product\BaseProduct
+ * @return array
*/
public function setPricingSet($pricingSet)
{
@@ -51,7 +51,7 @@ public function setPricingSet($pricingSet)
}
/**
- * @return $priceSet
+ * @return array $priceSet
*/
public function getPricingSet()
{
4 lib/Vespolina/Entity/Product/ProductInterface.php
View
@@ -29,8 +29,7 @@ function addAttribute(AttributeInterface $attribute);
/**
* Add an array of attribute to the product
- *
- * @param array of Vespolina\Entity\Product\AttributeInterface $attributes
+ * @param array $attributes
*/
function addAttributes(array $attributes);
@@ -53,6 +52,7 @@ function removeAttribute($type);
/**
* Return a new instance of the ProductIdentifierSet, based on the class passed into the Product from the constructor
*
+ * @param $options
* @return instance of Vespolina\ProductBundle\Identifier\ProductIdentifierSetInterface
*/
function createProductIdentifierSet($options);
Please sign in to comment.
Something went wrong with that request. Please try again.