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\Manager\NestCrudable;
class DiscountCodeManager extends NestCrudable implements DiscountCodeManagerInterface
{
/**
* {@inheritdoc}
public static function getServiceName()
return 'discount_codes';
}
public function getResourceName()
return 'discount_code';
public function getParentResourceName()
return 'price_rule';
public function getModelClass()
return DiscountCode::class;
public function count($priceRuleId, array $query = [])
throw new \Exception('The action is not supported');