@@ -21,7 +21,7 @@ class Group_Subscription {
2121 /**
2222 * Check if a subscription is a group subscription.
2323 *
24- * @param WC_Subscription|int $subscription The subscription object or ID.
24+ * @param \ WC_Subscription|int $subscription The subscription object or ID.
2525 *
2626 * @return bool Whether the subscription is a group subscription.
2727 */
@@ -33,7 +33,7 @@ public static function is_group_subscription( $subscription ) {
3333 /**
3434 * Get the managers of a group subscription.
3535 *
36- * @param WC_Subscription|int $subscription The subscription object or ID.
36+ * @param \ WC_Subscription|int $subscription The subscription object or ID.
3737 *
3838 * @return int[] The group manager user IDs.
3939 */
@@ -55,7 +55,7 @@ public static function get_managers( $subscription ) {
5555 /**
5656 * Get the members of a group subscription.
5757 *
58- * @param WC_Subscription|int $subscription The subscription object or ID.
58+ * @param \ WC_Subscription|int $subscription The subscription object or ID.
5959 *
6060 * @return int[] Array of user IDs for the group subscription members.
6161 */
@@ -88,19 +88,19 @@ function( $user ) {
8888 * Filter the members of a group subscription.
8989 *
9090 * @param int[] $members Array of user IDs for group subscription members.
91- * @param WC_Subscription $subscription The subscription object.
91+ * @param \ WC_Subscription $subscription The subscription object.
9292 */
9393 return apply_filters ( 'newspack_group_subscription_members ' , $ members , $ subscription );
9494 }
9595
9696 /**
9797 * Update the member IDs for a group subscription.
9898 *
99- * @param WC_Subscription|int $subscription The subscription object or ID.
100- * @param int[] $members_to_add Group member user IDs to add the subscription.
101- * @param int[] $members_to_remove Group member user IDs to remove from the subscription.
99+ * @param \ WC_Subscription|int $subscription The subscription object or ID.
100+ * @param int[] $members_to_add Group member user IDs to add the subscription.
101+ * @param int[] $members_to_remove Group member user IDs to remove from the subscription.
102102 *
103- * @return object| WP_Error Added/removed results.
103+ * @return array|\ WP_Error Added/removed results.
104104 */
105105 public static function update_members ( $ subscription , $ members_to_add , $ members_to_remove = [] ) {
106106 if ( ! function_exists ( 'wcs_get_subscription ' ) ) {
@@ -168,8 +168,8 @@ public static function update_members( $subscription, $members_to_add, $members_
168168 /**
169169 * Check if a user is a member or manager of a group subscription.
170170 *
171- * @param int $user_id The user ID.
172- * @param WC_Subscription|int $subscription The subscription object or ID.
171+ * @param int $user_id The user ID.
172+ * @param \ WC_Subscription|int $subscription The subscription object or ID.
173173 *
174174 * @return bool|null Whether the user has access to the group subscription, or null if not a group subscription.
175175 */
@@ -190,7 +190,7 @@ public static function user_is_member( $user_id, $subscription ) {
190190 *
191191 * @param bool|null $is_member Whether the user is a member or manager of the group subscription, or null if not a group subscription.
192192 * @param int $user_id The user ID.
193- * @param WC_Subscription|int $subscription The subscription object or ID.
193+ * @param \ WC_Subscription|int $subscription The subscription object or ID.
194194 */
195195 return apply_filters ( 'newspack_group_subscription_user_is_member ' , $ is_member , $ user_id , $ subscription );
196196 }
@@ -202,7 +202,7 @@ public static function user_is_member( $user_id, $subscription ) {
202202 * @param int $user_id The user ID.
203203 * @param bool $ids_only If true, return only the subscription IDs instead of the subscription objects.
204204 *
205- * @return WC_Subscription[]|int[] The group subscriptions or subscription IDs the user is a member of.
205+ * @return \ WC_Subscription[]|int[] The group subscriptions or subscription IDs the user is a member of.
206206 */
207207 public static function get_group_subscriptions_for_user ( $ user_id , $ ids_only = false ) {
208208 if ( ! function_exists ( 'wcs_get_subscription ' ) ) {
@@ -220,7 +220,7 @@ public static function get_group_subscriptions_for_user( $user_id, $ids_only = f
220220 /**
221221 * Filter the group subscriptions a user is a member of.
222222 *
223- * @param WC_Subscription[]|int[] $subscriptions The group subscriptions or subscription IDs the user is a member of.
223+ * @param \ WC_Subscription[]|int[] $subscriptions The group subscriptions or subscription IDs the user is a member of.
224224 * @param int $user_id The user ID.
225225 */
226226 return apply_filters ( 'newspack_group_subscriptions_for_user ' , $ subscriptions , $ user_id );
0 commit comments