PluginProbe
GiveWP – Donation Plugin and Fundraising Platform / 4.16.9
GiveWP – Donation Plugin and Fundraising Platform v4.16.9
4.16.9 4.16.8.1 4.16.8 4.16.7.2 4.16.7.1 4.16.7 4.16.6.1 4.16.6 4.16.5.1 4.16.5 4.16.4 4.16.3 4.16.2 4.16.1 4.16.0 4.15.5 4.15.4 4.15.3 4.15.2 4.15.1 4.15.0 2.3.0 2.3.1 2.3.2 2.30.0 All 255 releases
← All changes | src/Subscriptions/DataTransferObjects/SubscriptionQueryData.php +6 -0 2.30.04.16.9 View file →
@@ -12,8 +12,9 @@
12 12
13 13 /**
14 14 * Class SubscriptionObjectData
15 15 *
16 + * @since 4.11.0 add campaign_id prop
16 17 * @since 2.19.6
17 18 */
18 19 final class SubscriptionQueryData
19 20 {
@@ -76,8 +77,12 @@
76 77 /**
77 78 * @var int
78 79 */
79 80 public $donationFormId;
81 + /**
82 + * @var int
83 + */
84 + public $campaignId;
80 85
81 86 /**
82 87 * Convert data from Subscription Object to Subscription Model
83 88 *
@@ -104,8 +109,9 @@
104 109 $self->status = new SubscriptionStatus($subscriptionQueryObject->status);
105 110 $self->gatewayId = $subscriptionQueryObject->gatewayId;
106 111 $self->gatewaySubscriptionId = $subscriptionQueryObject->gatewaySubscriptionId;
107 112 $self->donationFormId = (int)$subscriptionQueryObject->donationFormId;
113 + $self->campaignId = (int)$subscriptionQueryObject->campaignId;
108 114
109 115 return $self;
110 116 }
111 117