Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

move cart and order related entities into Order namespace

  • Loading branch information...
commit 1d539d51f51af79710b340134b612d29559d287c 1 parent 7040d48
@iampersistent iampersistent authored
View
7 lib/Vespolina/Entity/BaseOrder.php → lib/Vespolina/Entity/Order/BaseOrder.php
@@ -6,10 +6,11 @@
* with this source code in the file LICENSE.
*/
-namespace Vespolina\Entity;
+namespace Vespolina\Entity\Order;
+
+use Vespolina\Entity\Order\ItemInterface;
+use Vespolina\Entity\Order\OrderInterface;
-use Vespolina\Entity\ItemInterface;
-use Vespolina\Entity\OrderInterface;
/**
* Order is a base class for shopping cart or sales order
*
View
6 lib/Vespolina/Entity/Cart.php → lib/Vespolina/Entity/Order/Cart.php
@@ -5,9 +5,11 @@
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
-namespace Vespolina\Entity;
-use Vespolina\Entity\BaseOrder;
+namespace Vespolina\Entity\Order;
+
+use Vespolina\Entity\Order\BaseOrder;
+
/**
* Cart implements a basic cart implementation
*
View
3  lib/Vespolina/Entity/CartInterface.php → lib/Vespolina/Entity/Order/CartInterface.php
@@ -5,7 +5,8 @@
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
-namespace Vespolina\Entity;
+
+namespace Vespolina\Entity\Order;
/**
* CartInterface is a generic interface for shopping cart
View
4 lib/Vespolina/Entity/Item.php → lib/Vespolina/Entity/Order/Item.php
@@ -6,9 +6,9 @@
* with this source code in the file LICENSE.
*/
-namespace Vespolina\Entity;
+namespace Vespolina\Entity\Order;
-use Vespolina\Entity\ItemInterface;
+use Vespolina\Entity\Order\ItemInterface;
/**
* Item is a class for items in an order
View
6 lib/Vespolina/Entity/ItemInterface.php → lib/Vespolina/Entity/Order/ItemInterface.php
@@ -6,9 +6,9 @@
* with this source code in the file LICENSE.
*/
-namespace Vespolina\Entity;
+namespace Vespolina\Entity\Order;
-use Vespolina\Entity\OrderInterface;
+use Vespolina\Entity\Order\OrderInterface;
/**
* ItemInterface is an interface for items in an order
@@ -42,7 +42,7 @@ function getOptions();
/**
* Return the order/cart where this item belongs
*
- * @return Vespolina\Entity\OrderInterface
+ * @return Vespolina\Entity\Order\OrderInterface
*/
function getParent();
View
4 lib/Vespolina/Entity/OrderInterface.php → ...Vespolina/Entity/Order/OrderInterface.php
@@ -6,9 +6,9 @@
* with this source code in the file LICENSE.
*/
-namespace Vespolina\Entity;
+namespace Vespolina\Entity\Order;
-use Vespolina\Entity\ItemInterface;
+use Vespolina\Entity\Order\ItemInterface;
/**
* OrderInterface is a generic interface for shopping cart or sales order
Please sign in to comment.
Something went wrong with that request. Please try again.