diff --git a/lib/ShopifySDK.php b/lib/ShopifySDK.php index 96e7dc8..6862e3c 100644 --- a/lib/ShopifySDK.php +++ b/lib/ShopifySDK.php @@ -118,6 +118,7 @@ class ShopifySDK 'SmartCollection', 'Theme', 'User', + 'Variant', 'Webhook', ); diff --git a/lib/Variant.php b/lib/Variant.php new file mode 100644 index 0000000..421256f --- /dev/null +++ b/lib/Variant.php @@ -0,0 +1,32 @@ + + * Created at 8/18/16 10:46 AM UTC+06:00 + * + * @see https://help.shopify.com/api/reference/product Shopify API Reference for Product + */ + +namespace PHPShopify; + + +/* + * -------------------------------------------------------------------------- + * Product -> Child Resources + * -------------------------------------------------------------------------- + * @property-read ShopifyResource $Metafield + * + * @method ShopifyResource Metafield(integer $id = null) + * + */ +class Variant extends ShopifyResource +{ + /** + * @inheritDoc + */ + public $resourceKey = 'variant'; + + protected $childResource = array( + 'Metafield' + ); +} \ No newline at end of file