Browse files

added ids

  • Loading branch information...
1 parent fd6540e commit 5e1dcba0fb65ad1a01622fd6d99b68e0e740d92c @theodorDiaconu theodorDiaconu committed with iampersistent Jan 19, 2013
Showing with 12 additions and 0 deletions.
  1. +6 −0 lib/Vespolina/Entity/Product/Merchandise.php
  2. +6 −0 lib/Vespolina/Entity/Product/Product.php
View
6 lib/Vespolina/Entity/Product/Merchandise.php
@@ -16,6 +16,7 @@
class Merchandise extends BaseProduct implements MerchandiseInterface
{
+ protected $id;
protected $activateOn;
protected $active;
protected $deactivateOn;
@@ -24,6 +25,11 @@ class Merchandise extends BaseProduct implements MerchandiseInterface
protected $slug;
protected $store;
+ public function getId()
+ {
+ return $this->id;
+ }
+
public function __construct(ProductInterface $product)
{
$this->product = $product;
View
6 lib/Vespolina/Entity/Product/Product.php
@@ -21,6 +21,12 @@
class Product extends BaseProduct implements ProductInterface
{
protected $slug;
+ protected $id;
+
+ public function getId()
+ {
+ return $this->id;
+ }
/**
* @inheritdoc

0 comments on commit 5e1dcba

Please sign in to comment.