1 | <?php |
||
31 | class SubscriptionSchedule extends ApiResource |
||
32 | { |
||
33 | |||
34 | const OBJECT_NAME = "subscription_schedule"; |
||
35 | |||
36 | use ApiOperations\All; |
||
37 | use ApiOperations\Create; |
||
38 | use ApiOperations\Retrieve; |
||
39 | use ApiOperations\Update; |
||
40 | use ApiOperations\NestedResource; |
||
41 | |||
42 | const PATH_REVISIONS = '/revisions'; |
||
43 | |||
44 | /** |
||
45 | * @param array|null $params |
||
46 | * @param array|string|null $opts |
||
47 | * |
||
48 | * @return SubscriptionSchedule The canceled subscription schedule. |
||
49 | */ |
||
50 | public function cancel($params = null, $opts = null) |
||
57 | |||
58 | /** |
||
59 | * @param array|null $params |
||
60 | * @param array|string|null $opts |
||
61 | * |
||
62 | * @return SubscriptionSchedule The released subscription schedule. |
||
63 | */ |
||
64 | public function release($params = null, $opts = null) |
||
71 | |||
72 | /** |
||
73 | * @param array|null $params |
||
74 | * @param array|string|null $options |
||
75 | * |
||
76 | * @return Collection The list of subscription schedule revisions. |
||
77 | */ |
||
78 | public function revisions($params = null, $options = null) |
||
86 | |||
87 | /** |
||
88 | * @param array|null $id The ID of the subscription schedule to which the person belongs. |
||
89 | * @param array|null $personId The ID of the person to retrieve. |
||
90 | * @param array|null $params |
||
91 | * @param array|string|null $opts |
||
92 | * |
||
93 | * @return Revision |
||
94 | */ |
||
95 | public static function retrieveRevision($id, $personId, $params = null, $opts = null) |
||
99 | |||
100 | /** |
||
101 | * @param array|null $id The ID of the subscription schedule on which to retrieve the persons. |
||
102 | * @param array|null $params |
||
103 | * @param array|string|null $opts |
||
104 | * |
||
105 | * @return Collection The list of revisions. |
||
106 | */ |
||
107 | public static function allRevisions($id, $params = null, $opts = null) |
||
111 | } |
||
112 |
If a method or function can return multiple different values and unless you are sure that you only can receive a single value in this context, we recommend to add an additional type check:
If this a common case that PHP Analyzer should handle natively, please let us know by opening an issue.