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
give / src / Framework / PaymentGateways / Commands / SubscriptionSynced.php

SubscriptionSynced.php in GiveWP – Donation Plugin and Fundraising Platform 4.16.9, at src/Framework/PaymentGateways/Commands/SubscriptionSynced.php

61 lines 1.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Give\Framework\PaymentGateways\Commands;
4
5 use Give\Donations\Models\Donation;
6 use Give\Subscriptions\Models\Subscription;
7
8 /**
9 * @since 2.33.0
10 */
11 class SubscriptionSynced implements GatewayCommand
12 {
13 /**
14 * @since 2.33.0
15 *
16 * @var Subscription
17 */
18 public $subscription;
19
20 /**
21 * @since 2.33.0
22 *
23 * @var array
24 */
25 public $missingDonations;
26
27 /**
28 * @since 2.33.0
29 *
30 * @var array
31 */
32 public $presentDonations;
33
34 /**
35 * @since 2.33.0
36 *
37 * @var string
38 */
39 public $notice;
40
41 /**
42 * @since 2.33.0
43 *
44 * @param Subscription $subscription Do not save the subscription, just return it so the API can see what's dirty
45 * @param Donation[] $missingDonations The missing donations added to the subscription
46 * @param Donation[] $presentDonations Optional. The already present donations of the subscription
47 * @param string $notice Optional. Use to notify users about some limitation or specificity of the gateway
48 */
49 public function __construct(
50 Subscription $subscription,
51 array $missingDonations,
52 array $presentDonations = [],
53 string $notice = ''
54 ) {
55 $this->subscription = $subscription;
56 $this->missingDonations = $missingDonations;
57 $this->presentDonations = $presentDonations;
58 $this->notice = $notice;
59 }
60 }
61