← All changes
|
src/Subscriptions/DataTransferObjects/SubscriptionQueryData.php
+6
-0
2.30.0
→
4.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 | |