Skip to content

Commit

Permalink
Merge pull request #39 from ombrodrigo/new-field-in-attribute
Browse files Browse the repository at this point in the history
Novo campo na classe Dsc\MercadoLivre\Requests\Category\Attribute
  • Loading branch information
dilowagner authored Dec 1, 2019
2 parents b624d50 + 5f36354 commit 691723b
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/Requests/Category/Attribute.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ class Attribute
*/
private $valueName;

/**
* @var string
* @JMS\Type("string")
*/
private $valueId;

/**
* @var Tag
* @JMS\Type("Dsc\MercadoLivre\Requests\Category\Tag")
Expand Down Expand Up @@ -154,6 +160,22 @@ public function setValueName($valueName)
$this->valueName = $valueName;
}

/**
* @return string
*/
public function getValueId()
{
return $this->valueId;
}

/**
* @param string $valueId
*/
public function setValueId($valueId)
{
$this->valueId = $valueId;
}

/**
* @return Tag
*/
Expand Down
1 change: 1 addition & 0 deletions tests/Requests/Category/AttributeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ public function assertingAttributeMappingAttributes()
$this->assertEquals('Características do produto', $attribute->getName());
$this->assertEquals('ITEM', $attribute->getHierarchy());
$this->assertEquals('list', $attribute->getValueType());
$this->assertNull($attribute->getValueId());
$this->assertNull($attribute->getValueName());
}

Expand Down

0 comments on commit 691723b

Please sign in to comment.