From 8bdc6c9a51089ce21c6268133cfd844bac7c64be Mon Sep 17 00:00:00 2001 From: Damien Metzger Date: Thu, 21 Nov 2013 16:01:34 +0100 Subject: [PATCH] [*] FO : Added getCategory getter in ProductController #PSCFV-8408 --- controllers/front/ProductController.php | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/controllers/front/ProductController.php b/controllers/front/ProductController.php index 8e7092fd6..b9696325f 100644 --- a/controllers/front/ProductController.php +++ b/controllers/front/ProductController.php @@ -27,14 +27,8 @@ class ProductControllerCore extends FrontController { public $php_self = 'product'; - /** - * @var Product - */ - protected $product; - /** - * @var Category - */ + protected $product; protected $category; public function setMedia() @@ -668,4 +662,9 @@ class ProductControllerCore extends FrontController { return $this->product; } + + public function getCategory() + { + return $this->category; + } } \ No newline at end of file