-
Notifications
You must be signed in to change notification settings - Fork 212
/
Copy pathComment.php
56 lines (51 loc) · 1.42 KB
/
Comment.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?php
/**
* Created by PhpStorm.
* @author Tareq Mahmood <tareqtms@yahoo.com>
* Created at 8/19/16 10:58 AM UTC+06:00
*
* @see https://help.shopify.com/api/reference/comment Shopify API Reference for Comment
*/
namespace PHPShopify;
/**
*
* --------------------------------------------------------------------------
* Comment -> Child Resources
* --------------------------------------------------------------------------
* @property-read Event $Event
*
* @method Event Event(integer $id = null)
*
* --------------------------------------------------------------------------
* Comment -> Custom actions
* --------------------------------------------------------------------------
* @method array markSpam() Mark a Comment as spam
* @method array markNotSpam() Mark a Comment as not spam
* @method array approve() Approve a Comment
* @method array remove() Remove a Comment
* @method array restore() Restore a Comment
*
*/
class Comment extends ShopifyResource
{
/**
* @inheritDoc
*/
protected $resourceKey = 'comment';
/**
* @inheritDoc
*/
protected $childResource = array (
'Event',
);
/**
* @inheritDoc
*/
protected $customPostActions = array(
'spam' => 'markSpam',
'not_spam' => 'markNotSpam',
'approve',
'remove',
'restore',
);
}