for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace ShopifyClient\Resource;
use ShopifyClient\Action\Action;
use ShopifyClient\Request;
/**
* https://help.shopify.com/api/reference/product_image
*
* @method create(float $parentId, array $parameters = [])
* @method get(float $parentId, float $childId)
* @method all(float $parentId, array $parameters = [])
* @method count(float $parentId)
* @method update(float $parentId, float $childId, array $parameters = [])
* @method delete(float $parentId, float $childId)
*/
class ProductImage extends AbstractResource implements Resource
{
* ProductImage constructor.
* @param Request $request
public function __construct(Request $request)
parent::__construct($request);
$this->actions->add(
'create',
new Action(
Request::METHOD_POST,
'products/%s/images.json',
'image',
'image'
)
);
'get',
Request::METHOD_GET,
'products/%s/images/%s.json',
'all',
'images',
'images'
'count',
'products/%s/images/count.json',
'count'
'update',
Request::METHOD_PUT,
'delete',
Request::METHOD_DELETE,
'products/%s/images/%s.json'
}