From 57f1465f114857aef802ee84d0da39baa1a2a4eb Mon Sep 17 00:00:00 2001 From: Franck Allimant Date: Wed, 28 Jun 2017 22:14:53 +0200 Subject: [PATCH] Fixed types --- .../Core/Event/Product/ProductCloneEvent.php | 23 ++++++++++++++----- 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/core/lib/Thelia/Core/Event/Product/ProductCloneEvent.php b/core/lib/Thelia/Core/Event/Product/ProductCloneEvent.php index c5d4e69207..08df07a4cb 100644 --- a/core/lib/Thelia/Core/Event/Product/ProductCloneEvent.php +++ b/core/lib/Thelia/Core/Event/Product/ProductCloneEvent.php @@ -17,12 +17,23 @@ class ProductCloneEvent extends ActionEvent { + /** @var string */ protected $ref; + /** @var string */ protected $lang; - protected $originalProduct = array(); - protected $clonedProduct = array(); + /** @var Product */ + protected $originalProduct; + /** @var Product */ + protected $clonedProduct; + /** @var array */ protected $types = array('images', 'documents'); + /** + * ProductCloneEvent constructor. + * @param string $ref + * @param string $lang the locale (such as fr_FR) + * @param $originalProduct + */ public function __construct( $ref, $lang, @@ -34,7 +45,7 @@ public function __construct( } /** - * @return mixed + * @return string */ public function getRef() { @@ -42,7 +53,7 @@ public function getRef() } /** - * @param mixed $ref + * @param string $ref */ public function setRef($ref) { @@ -50,7 +61,7 @@ public function setRef($ref) } /** - * @return mixed + * @return string the locale (such as fr_FR) */ public function getLang() { @@ -58,7 +69,7 @@ public function getLang() } /** - * @param mixed $lang + * @param string $lang the locale (such as fr_FR) */ public function setLang($lang) {