Permalink
Browse files

wip

  • Loading branch information...
1 parent 9464e66 commit 194a89afc86fb7591daf93b49a40bf63cffb7904 @cordoval cordoval committed with iampersistent Jan 21, 2013
Showing with 14 additions and 7 deletions.
  1. +4 −1 lib/Vespolina/Entity/Order/BaseOrder.php
  2. +10 −6 lib/Vespolina/Entity/Order/OrderInterface.php
@@ -12,6 +12,7 @@
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
@@ -248,9 +249,11 @@ public function getName()
/**
* @inheritdoc
*/
- public function setOwner($owner)
+ public function setOwner(PartnerInterface $owner)
{
$this->owner = $owner;
+
+ return $this;
}
/**
@@ -9,6 +9,7 @@
namespace Vespolina\Entity\Order;
use Vespolina\Entity\Order\ItemInterface;
+use Vespolina\Entity\Partner\PartnerInterface;
/**
* OrderInterface is a generic interface for shopping cart or sales order
@@ -21,7 +22,9 @@
/**
* Add an attribute to the collection
*
- * @param $name, $value
+ * @param $name
+ * @param $value
+ * @return mixed
*/
function addAttribute($name, $value);
@@ -101,7 +104,7 @@ function setItems($items);
/**
* Merge an array of items to the items already in the order
*
- * @param array of Vespolina\Entity\ItemInterface $items
+ * @param \Vespolina\Entity\Order\ItemInterface[] $items
*/
function mergeItems(array $items);
@@ -122,21 +125,22 @@ function getName();
/**
* Set the owner of the owner
*
- * @param User $owner
+ * @param \Vespolina\Entity\Partner\PartnerInterface $owner
*/
- function setOwner($owner);
+ function setOwner(PartnerInterface $owner);
/**
* Return the owner of the order
*
- * @return User
+ * @return \Vespolina\Entity\Partner\PartnerInterface
*/
function getOwner();
/**
* Set the current state of the order
*
- * @return
+ * @param $state
+ * @return \Vespolina\Entity\Order\OrderInterface
*/
function setState($state);

0 comments on commit 194a89a

Please sign in to comment.