Skip to content

Commit

Permalink
[ST-11039] Fix global attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurprogramming committed Jul 26, 2016
1 parent fbc0abc commit f5793b3
Showing 1 changed file with 28 additions and 1 deletion.
29 changes: 28 additions & 1 deletion src/Product/Attribute.php
Expand Up @@ -21,11 +21,17 @@ class Attribute implements ToArrayInterface
*/
protected $value;

/**
* @var integer
*/
protected $fkCatalogAttributeSet;

/**
* @param string $name
* @param string $value
* @var integer $fkCatalogAttributeSet
*/
public function __construct($name = null, $value = null)
public function __construct($name = null, $value = null, $fkCatalogAttributeSet = null)
{
if (!empty($name) && !is_string($name)) {
throw new InvalidArgumentException('Invalid attribute name');
Expand All @@ -37,6 +43,7 @@ public function __construct($name = null, $value = null)

$this->name = $name;
$this->value = $value;
$this->fkCatalogAttributeSet = $fkCatalogAttributeSet;
}

/**
Expand Down Expand Up @@ -91,6 +98,26 @@ public function setValue($value)
return $this;
}

/**
* @return integer
*/
public function getFkCatalogAttributeSet()
{
return $this->fkCatalogAttributeSet;
}

/**
* @param integer $fkCatalogAttributeSet
*
* @return Attribute
*/
public function setFkCatalogAttributeSet($fkCatalogAttributeSet)
{
$this->fkCatalogAttributeSet = $fkCatalogAttributeSet;

return $this;
}

/**
* {@inheritDoc}
*/
Expand Down

0 comments on commit f5793b3

Please sign in to comment.