for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the slince/shopify-api-php
*
* (c) Slince <[email protected]>
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace Slince\Shopify\Manager\DiscountCode;
use Slince\Shopify\Common\Model\Model;
class DiscountCode extends Model
{
/**
* @var string
protected $code;
protected $createdAt;
* @var int
protected $priceRuleId;
protected $usageCount;
public function getCode()
return $this->code;
}
* @param string $code
* @return DiscountCode
public function setCode($code)
$this->code = $code;
return $this;
public function getCreatedAt()
return $this->createdAt;
* @param string $createdAt
public function setCreatedAt($createdAt)
$this->createdAt = $createdAt;
public function getPriceRuleId()
return $this->priceRuleId;
* @param int $priceRuleId
public function setPriceRuleId($priceRuleId)
$this->priceRuleId = $priceRuleId;
public function getUsageCount()
return $this->usageCount;
* @param int $usageCount
public function setUsageCount($usageCount)
$this->usageCount = $usageCount;