Skip to content

Commit

Permalink
Merge pull request #2403 from roadster31/type-fix
Browse files Browse the repository at this point in the history
Fixed types
  • Loading branch information
roadster31 committed Jun 28, 2017
2 parents ded4461 + 57f1465 commit c8530e7
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions core/lib/Thelia/Core/Event/Product/ProductCloneEvent.php
Expand Up @@ -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,
Expand All @@ -34,31 +45,31 @@ public function __construct(
}

/**
* @return mixed
* @return string
*/
public function getRef()
{
return $this->ref;
}

/**
* @param mixed $ref
* @param string $ref
*/
public function setRef($ref)
{
$this->ref = $ref;
}

/**
* @return mixed
* @return string the locale (such as fr_FR)
*/
public function getLang()
{
return $this->lang;
}

/**
* @param mixed $lang
* @param string $lang the locale (such as fr_FR)
*/
public function setLang($lang)
{
Expand Down

0 comments on commit c8530e7

Please sign in to comment.