diff --git a/README.md b/README.md index 8459ff7..766654b 100644 --- a/README.md +++ b/README.md @@ -362,6 +362,7 @@ Some resources are available directly, some resources are only available through - [InventoryLevel](https://help.shopify.com/api/reference/inventorylevel) - [Location](https://help.shopify.com/api/reference/location/) _(read only)_ - Location -> [InventoryLevel](https://help.shopify.com/api/reference/inventorylevel) +- Location -> [Metafield](https://help.shopify.com/api/reference/metafield) - [Metafield](https://help.shopify.com/api/reference/metafield) - [Multipass](https://help.shopify.com/api/reference/multipass) _(Shopify Plus Only, API not available yet)_ - [Order](https://help.shopify.com/api/reference/order) diff --git a/lib/Location.php b/lib/Location.php index f4a589a..c5c1247 100644 --- a/lib/Location.php +++ b/lib/Location.php @@ -9,6 +9,14 @@ namespace PHPShopify; +/** + * -------------------------------------------------------------------------- + * Location -> Child Resources + * -------------------------------------------------------------------------- + * @property-read Metafield $Metafield + * + * @method Metafield Metafield(integer $id = null) + */ class Location extends ShopifyResource { @@ -32,5 +40,6 @@ class Location extends ShopifyResource */ protected $childResource = array( 'InventoryLevel', + 'Metafield', ); -} \ No newline at end of file +}