Skip to content

Commit 4b3cdc1

Browse files
authored
Merge pull request #34 from Roemerb/master
Added the Report resource
2 parents 7d1cf3c + 5bfd480 commit 4b3cdc1

File tree

5 files changed

+20
-2
lines changed

5 files changed

+20
-2
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
vendor
2-
/nbproject/private/
2+
/nbproject/private/
3+
.idea/

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "phpclassic/php-shopify",
2+
"name": "roemerb/php-shopify",
33
"description": "PHP SDK for Shopify API",
44
"keywords": ["PHP","Shopify","SDK"],
55
"homepage": "https://github.com/phpclassic/php-shopify",

lib/Report.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?php
2+
3+
namespace PHPShopify;
4+
5+
class Report extends ShopifyResource
6+
{
7+
protected $resourceKey = 'report';
8+
}

lib/ShopifySDK.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ class ShopifySDK
114114
'ProductVariant',
115115
'RecurringApplicationCharge',
116116
'Redirect',
117+
'Report',
117118
'ScriptTag',
118119
'ShippingZone',
119120
'Shop',

tests/ReportTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?php
2+
3+
namespace PHPShopify;
4+
5+
class ReportTest extends TestSimpleResource
6+
{
7+
8+
}

0 commit comments

Comments
 (0)