Skip to content

Commit 86bc824

Browse files
authored
Merge pull request #33 from TonyDeStefano/docblocks
Fixed docblock declarations
2 parents af2e149 + 7ac3fd9 commit 86bc824

22 files changed

+146
-83
lines changed

lib/Article.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,15 @@
1010
namespace PHPShopify;
1111

1212

13-
/*
13+
/**
1414
* --------------------------------------------------------------------------
1515
* Article -> Child Resources
1616
* --------------------------------------------------------------------------
17-
* @property-read ShopifyResource $Event
17+
* @property-read Event $Event
18+
* @property-read Metafield $Metafield
1819
*
19-
* @method ShopifyResource Event(integer $id = null)
20+
* @method Event Event(integer $id = null)
21+
* @method Metafield Metafield(integer $id = null)
2022
*
2123
*/
2224
class Article extends ShopifyResource

lib/Blog.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@
99

1010
namespace PHPShopify;
1111

12-
/*
12+
/**
1313
* --------------------------------------------------------------------------
1414
* Blog -> Child Resources
1515
* --------------------------------------------------------------------------
16-
* @property-read ShopifyResource $Article
17-
* @property-read ShopifyResource $Event
18-
* @property-read ShopifyResource $Metafield
16+
* @property-read Article $Article
17+
* @property-read Event $Event
18+
* @property-read Metafield $Metafield
1919
*
20-
* @method ShopifyResource Article(integer $id = null)
21-
* @method ShopifyResource Event(integer $id = null)
22-
* @method ShopifyResource Metafield(integer $id = null)
20+
* @method Article Article(integer $id = null)
21+
* @method Event Event(integer $id = null)
22+
* @method Metafield Metafield(integer $id = null)
2323
*
2424
*/
2525
class Blog extends ShopifyResource

lib/Comment.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
namespace PHPShopify;
1111

1212

13-
/*
13+
/**
1414
*
1515
* --------------------------------------------------------------------------
1616
* Comment -> Child Resources
1717
* --------------------------------------------------------------------------
18-
* @property-read ShopifyResource $Event
18+
* @property-read Event $Event
1919
*
20-
* @method ShopifyResource Event(integer $id = null)
20+
* @method Event Event(integer $id = null)
2121
*
2222
* --------------------------------------------------------------------------
2323
* Comment -> Custom actions

lib/Country.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@
1010
namespace PHPShopify;
1111

1212

13-
/*
13+
/**
1414
* --------------------------------------------------------------------------
1515
* Country -> Child Resources
1616
* --------------------------------------------------------------------------
17-
* @property-read ShopifyResource $Province
17+
* @property-read Province $Province
1818
*
19-
* @method ShopifyResource Province(integer $id = null)
19+
* @method Province Province(integer $id = null)
2020
*
2121
*/
2222
class Country extends ShopifyResource

lib/CustomCollection.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@
1010
namespace PHPShopify;
1111

1212

13-
/*
13+
/**
1414
* --------------------------------------------------------------------------
1515
* CustomCollection -> Child Resources
1616
* --------------------------------------------------------------------------
17-
* @property-read ShopifyResource $Event
18-
* @property-read ShopifyResource $Metafield
17+
* @property-read Event $Event
18+
* @property-read Metafield $Metafield
1919
*
20-
* @method ShopifyResource Event(integer $id = null)
21-
* @method ShopifyResource Metafield(integer $id = null)
20+
* @method Event Event(integer $id = null)
21+
* @method Metafield Metafield(integer $id = null)
2222
*
2323
*/
2424
class CustomCollection extends ShopifyResource

lib/Customer.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@
1010
namespace PHPShopify;
1111

1212

13-
/*
13+
/**
1414
* --------------------------------------------------------------------------
1515
* Customer -> Child Resources
1616
* --------------------------------------------------------------------------
17-
* @property-read ShopifyResource $Address
18-
* @property-read ShopifyResource $Metafield
17+
* @property-read CustomerAddress $Address
18+
* @property-read Metafield $Metafield
1919
*
20-
* @method ShopifyResource Address(integer $id = null)
21-
* @method ShopifyResource Metafield(integer $id = null)
20+
* @method CustomerAddress Address(integer $id = null)
21+
* @method Metafield Metafield(integer $id = null)
2222
* --------------------------------------------------------------------------
2323
* Customer -> Custom actions
2424
* --------------------------------------------------------------------------

lib/CustomerAddress.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,11 @@
1010
namespace PHPShopify;
1111

1212

13-
/*
13+
/**
1414
* --------------------------------------------------------------------------
1515
* CustomerAddress -> Custom actions
1616
* --------------------------------------------------------------------------
1717
* @method array makeDefault() Sets the address as default for the customer
18-
* @method array set($params) Perform bulk operations against a number of addresses
1918
*
2019
*/
2120
class CustomerAddress extends ShopifyResource

lib/CustomerSavedSearch.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@
1010
namespace PHPShopify;
1111

1212

13-
/*
13+
/**
1414
* --------------------------------------------------------------------------
1515
* CustomerSavedSearch -> Child Resources
1616
* --------------------------------------------------------------------------
17-
* @property-read ShopifyResource $Customer
17+
* @property-read Customer $Customer
1818
*
19-
* @method ShopifyResource Customer(integer $id = null)
19+
* @method Customer Customer(integer $id = null)
2020
*
2121
*/
2222
class CustomerSavedSearch extends ShopifyResource

lib/Discount.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
namespace PHPShopify;
1111

1212

13-
/*
13+
/**
1414
* --------------------------------------------------------------------------
1515
* Discount -> Custom actions
1616
* --------------------------------------------------------------------------

lib/Fulfillment.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@
1010
namespace PHPShopify;
1111

1212

13-
/*
13+
/**
1414
* --------------------------------------------------------------------------
1515
* Fulfillment -> Child Resources
1616
* --------------------------------------------------------------------------
17-
* @property-read ShopifyResource $Event
17+
* @property-read Event $Event
1818
*
19-
* @method ShopifyResource Event(integer $id = null)
19+
* @method Event Event(integer $id = null)
2020
*
2121
* --------------------------------------------------------------------------
2222
* Fulfillment -> Custom actions

lib/GiftCard.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,10 @@
1010
namespace PHPShopify;
1111

1212

13-
/*
13+
/**
1414
* --------------------------------------------------------------------------
1515
* GiftCard -> Custom actions
1616
* --------------------------------------------------------------------------
17-
* @method array disable() Disable a gift card. Disabling a gift card is permanent and cannot be undone.
1817
* @method array search() Search for gift cards matching supplied query
1918
*
2019
*/

lib/Order.php

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,30 +11,30 @@
1111

1212

1313

14-
/*
14+
/**
1515
* --------------------------------------------------------------------------
1616
* Order -> Child Resources
1717
* --------------------------------------------------------------------------
18-
* @property-read ShopifyResource $Fulfillment
19-
* @property-read ShopifyResource $Risk
20-
* @property-read ShopifyResource $Refund
21-
* @property-read ShopifyResource $Transaction
22-
* @property-read ShopifyResource $Event
23-
* @property-read ShopifyResource $Metafield
18+
* @property-read Fulfillment $Fulfillment
19+
* @property-read OrderRisk $Risk
20+
* @property-read Refund $Refund
21+
* @property-read Transaction $Transaction
22+
* @property-read Event $Event
23+
* @property-read Metafield $Metafield
2424
*
25-
* @method ShopifyResource Fulfillment(integer $id = null)
26-
* @method ShopifyResource Risk(integer $id = null)
27-
* @method ShopifyResource Refund(integer $id = null)
28-
* @method ShopifyResource Transaction(integer $id = null)
29-
* @method ShopifyResource Event(integer $id = null)
30-
* @method ShopifyResource Metafield(integer $id = null)
25+
* @method Fulfillment Fulfillment(integer $id = null)
26+
* @method OrderRisk Risk(integer $id = null)
27+
* @method Refund Refund(integer $id = null)
28+
* @method Transaction Transaction(integer $id = null)
29+
* @method Event Event(integer $id = null)
30+
* @method Metafield Metafield(integer $id = null)
3131
*
3232
* --------------------------------------------------------------------------
3333
* Order -> Custom actions
3434
* --------------------------------------------------------------------------
3535
* @method array close() Close an Order
3636
* @method array open() Re-open a closed Order
37-
* @method array cancel($data) Cancel an Order
37+
* @method array cancel(array $data) Cancel an Order
3838
*
3939
*/
4040
class Order extends ShopifyResource

lib/Page.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@
1010
namespace PHPShopify;
1111

1212

13-
/*
13+
/**
1414
* --------------------------------------------------------------------------
1515
* Page -> Child Resources
1616
* --------------------------------------------------------------------------
17-
* @property-read ShopifyResource $Event
18-
* @property-read ShopifyResource $Metafield
17+
* @property-read Event $Event
18+
* @property-read Metafield $Metafield
1919
*
20-
* @method ShopifyResource Event(integer $id = null)
21-
* @method ShopifyResource Metafield(integer $id = null)
20+
* @method Event Event(integer $id = null)
21+
* @method Metafield Metafield(integer $id = null)
2222
*
2323
*/
2424
class Page extends ShopifyResource

lib/Product.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,19 @@
1010
namespace PHPShopify;
1111

1212

13-
/*
13+
/**
1414
* --------------------------------------------------------------------------
1515
* Product -> Child Resources
1616
* --------------------------------------------------------------------------
17-
* @property-read ShopifyResource $Image
18-
* @property-read ShopifyResource $Variant
19-
* @property-read ShopifyResource $Metafield
20-
* @property-read ShopifyResource $Event
17+
* @property-read ProductImage $Image
18+
* @property-read ProductVariant $Variant
19+
* @property-read Metafield $Metafield
20+
* @property-read Event $Event
2121
*
22-
* @method ShopifyResource Image(integer $id = null)
23-
* @method ShopifyResource Variant(integer $id = null)
24-
* @method ShopifyResource Metafield(integer $id = null)
25-
* @method ShopifyResource Event(integer $id = null)
22+
* @method ProductImage Image(integer $id = null)
23+
* @method ProductVariant Variant(integer $id = null)
24+
* @method Metafield Metafield(integer $id = null)
25+
* @method Event Event(integer $id = null)
2626
*
2727
*/
2828
class Product extends ShopifyResource

lib/ProductVariant.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@
1010
namespace PHPShopify;
1111

1212

13-
/*
13+
/**
1414
* --------------------------------------------------------------------------
1515
* ProductVariant -> Child Resources
1616
* --------------------------------------------------------------------------
17-
* @property-read ShopifyResource $Metafield
17+
* @property-read Metafield $Metafield
1818
*
19-
* @method ShopifyResource Metafield(integer $id = null)
19+
* @method Metafield Metafield(integer $id = null)
2020
*
2121
*/
2222
class ProductVariant extends ShopifyResource

lib/RecurringApplicationCharge.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,18 @@
1010
namespace PHPShopify;
1111

1212

13-
/*
13+
/**
1414
* --------------------------------------------------------------------------
1515
* RecurringApplicationCharge -> Child Resources
1616
* --------------------------------------------------------------------------
17-
* @property-read ShopifyResource $UsageCharge
17+
* @property-read UsageCharge $UsageCharge
1818
*
19-
* @method ShopifyResource UsageCharge(integer $id = null)
19+
* @method UsageCharge UsageCharge(integer $id = null)
2020
*
2121
* --------------------------------------------------------------------------
2222
* RecurringApplicationCharge -> Custom actions
2323
* --------------------------------------------------------------------------
2424
* @method array activate() Activate a recurring application charge
25-
* @method array customize($data) Customize a recurring application charge
2625
*
2726
*/
2827
class RecurringApplicationCharge extends ShopifyResource

lib/Refund.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
namespace PHPShopify;
1111

1212

13-
/*
13+
/**
1414
* --------------------------------------------------------------------------
1515
* Refund -> Custom actions
1616
* --------------------------------------------------------------------------

lib/ShopifyResource.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -426,8 +426,6 @@ public function delete($urlParams = array(), $url = null)
426426
* @param array $dataArray
427427
* @param string $dataKey
428428
*
429-
* @internal
430-
*
431429
* @return array
432430
*/
433431
protected function wrapData($dataArray, $dataKey = null)

0 commit comments

Comments
 (0)