Skip to content

Commit

Permalink
Merge pull request #11 from cloudsthere/master
Browse files Browse the repository at this point in the history
Add Item.InitTierVariation() and Item.GetRecommendCats()
  • Loading branch information
minchao authored Jan 22, 2020
2 parents 1efdcd9 + 3429f36 commit a676a14
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
28 changes: 28 additions & 0 deletions src/Nodes/Item/Parameters/GetRecommendCats.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?php

namespace Shopee\Nodes\Item\Parameters;

use Shopee\RequestParameters;

class GetRecommendCats extends RequestParameters
{
use CategoryIdTrait;

public function getName(): string
{
return $this->parameters['name'];
}

/**
* Name of the item in local language.
*
* @param string $name
* @return $this
*/
public function setName(string $name)
{
$this->parameters['name'] = $name;

return $this;
}
}
20 changes: 20 additions & 0 deletions src/Nodes/Item/Parameters/InitTierVariation.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php

namespace Shopee\Nodes\Item\Parameters;

use Shopee\RequestParameters;

class InitTierVariation extends RequestParameters
{
use CategoryIdTrait;

public function getTierVariation()
{
return $this->parameters['tier_variation'];
}

public function getVariation()
{
return $this->parameters['variation'];
}
}

0 comments on commit a676a14

Please sign in to comment.