Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add missing use statement and add slug fluency

  • Loading branch information...
commit f3856f53e67dff906a4b6f231b8e90d02dc0ec1e 1 parent d894f57
@cordoval cordoval authored iampersistent committed
View
1  lib/Vespolina/Entity/Product/BaseProduct.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;
View
3  lib/Vespolina/Entity/Product/Product.php
@@ -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;
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.