Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adjusted composer

  • Loading branch information...
commit 48d189e11b7d5d367a546c8c4954dfeeda517c32 1 parent e11377a
@inspiran inspiran authored iampersistent committed
View
2  composer.json
@@ -2,7 +2,7 @@
"name": "vespolina/core",
"type": "entities",
"description": "Core entities for the Vespolina Project",
- "keywords": ["ecommerce, shop"],
+ "keywords": ["ecommerce", "shop"],
"homepage": "https://github.com/vespolina/VespolinaCore",
"license": "MIT",
"require": {
View
2  lib/Vespolina/Entity/Pricing/PricingContext.php
@@ -16,7 +16,7 @@
use Vespolina\Entity\Pricing\PricingContextInterface;
-class PricingContext extends \Pimple //implements PricingContextInterface
+class PricingContext extends \Pimple implements PricingContextInterface
{
}
View
21 lib/Vespolina/Entity/Pricing/PricingContextInterface.php
@@ -11,31 +11,16 @@
interface PricingContextInterface
{
- /**
- * Get the quantity of items for this pricing context. This is a shortcut for get('quantity')
- *
- * @return integer
- */
- function getQuantity();
-
- /**
- * Get the quantity of items for this pricing context
- *
- * @param integer
- *
- * @return $this
- */
- function setQuantity($quantity);
/**
* Get the value for a set variable in this context or null if the variable is not set
*
* @param $key
- * @param null $default // todo, how would this work since the context is used for processing the PricingSet?
+ * @param null $default
*
* @return null | mixed
*/
- function get($key, $default = null);
+ //function get($key, $default = null);
/**
* Set the value for a variable that will be used by a PricingSet
@@ -45,5 +30,5 @@ function get($key, $default = null);
*
* @return $this
*/
- function set($key, $value);
+ //function set($key, $value);
}
Please sign in to comment.
Something went wrong with that request. Please try again.