Permalink
Browse files

remove partner so owner is used consistently & CS

  • Loading branch information...
1 parent 585f640 commit 54d822770103c337c60127e3be19e6006c30d2d2 @iampersistent iampersistent committed Mar 6, 2013
Showing with 8 additions and 28 deletions.
  1. +1 −20 lib/Vespolina/Entity/Order/BaseOrder.php
  2. +7 −8 lib/Vespolina/Entity/Order/OrderInterface.php
@@ -11,8 +11,6 @@
use Vespolina\Entity\Channel\Channel;
use Vespolina\Entity\Order\ItemInterface;
use Vespolina\Entity\Order\OrderInterface;
-use Vespolina\Entity\Partner\Partner;
-use Vespolina\Entity\Partner\PartnerInterface;
/**
* Order is a base class for shopping cart or sales order
@@ -31,7 +29,6 @@ class BaseOrder implements OrderInterface
protected $items;
protected $name;
protected $owner;
- protected $partner;
protected $payment;
protected $pricingSet;
protected $state;
@@ -249,7 +246,7 @@ public function getName()
/**
* @inheritdoc
*/
- public function setOwner(PartnerInterface $owner)
+ public function setOwner($owner)
{
$this->owner = $owner;
@@ -267,22 +264,6 @@ public function getOwner()
/**
* @inheritdoc
*/
- public function setPartner(Partner $partner)
- {
- $this->partner = $partner;
- }
-
- /**
- * @inheritdoc
- */
- public function getPartner()
- {
- return $this->partner;
- }
-
- /**
- * @inheritdoc
- */
public function setPayment($payment)
{
$this->payment = $payment;
@@ -9,7 +9,6 @@
namespace Vespolina\Entity\Order;
use Vespolina\Entity\Order\ItemInterface;
-use Vespolina\Entity\Partner\PartnerInterface;
/**
* OrderInterface is a generic interface for a shopping cart or sales order
@@ -125,17 +124,21 @@ function getName();
/**
* Set the owner of the owner
*
- * @param \Vespolina\Entity\Partner\PartnerInterface $owner
+ * @param mixed $owner
*/
- function setOwner(PartnerInterface $owner);
+ function setOwner($owner);
/**
* Return the owner of the order
*
- * @return \Vespolina\Entity\Partner\PartnerInterface
+ * @return mixed
*/
function getOwner();
+ function setPricing($pricingSet);
+
+ function getPricing();
+
/**
* Set the current state of the order
*
@@ -151,10 +154,6 @@ function setState($state);
*/
function getState();
- function setPricing($pricingSet);
-
- function getPricing();
-
/**
* Set the total price for the order
*

0 comments on commit 54d8227

Please sign in to comment.