Permalink
Browse files

add missing use statement and add slug fluency

  • Loading branch information...
1 parent d894f57 commit f3856f53e67dff906a4b6f231b8e90d02dc0ec1e @cordoval cordoval committed with iampersistent Jan 26, 2013
Showing with 4 additions and 0 deletions.
  1. +1 −0 lib/Vespolina/Entity/Product/BaseProduct.php
  2. +3 −0 lib/Vespolina/Entity/Product/Product.php
@@ -8,6 +8,7 @@
namespace Vespolina\Entity\Product;
+use Doctrine\Common\Collections\ArrayCollection;
use Vespolina\Entity\Asset\MediaInterface;
use Vespolina\Entity\Identifier\IdentifierInterface;
use Vespolina\Entity\Product\BaseProductInterface;
@@ -34,6 +34,8 @@ public function getId()
public function setSlug($slug)
{
$this->slug = $slug;
+
+ return $this;
}
/**
@@ -138,6 +140,7 @@ protected function createKeyFromOptions($options)
foreach ($options as $optionGroup => $option) {
$key .= sprintf('%s:%s;', $optionGroup, $option);
}
+
return $key;
}
}

0 comments on commit f3856f5

Please sign in to comment.