PluginProbe
GiveWP – Donation Plugin and Fundraising Platform / 4.15.5
GiveWP – Donation Plugin and Fundraising Platform v4.15.5
4.18.0 4.17.0 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 All 257 releases
give / src / PaymentGateways / Stripe / DataTransferObjects / SetDefaultStripeAccountDto.php

SetDefaultStripeAccountDto.php in GiveWP – Donation Plugin and Fundraising Platform 4.15.5, at src/PaymentGateways/Stripe/DataTransferObjects/SetDefaultStripeAccountDto.php

38 lines 722 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Give\PaymentGateways\Stripe\DataTransferObjects;
4
5 /**
6 * Class SetDefaultStripeAccountDto
7 * @package Give\PaymentGateways\Stripe\DataTransferObjects
8 *
9 * @since 2.13.0
10 */
11 final class SetDefaultStripeAccountDto
12 {
13 /**
14 * @var mixed|string
15 */
16 public $accountSlug;
17
18 /**
19 * @var int|string
20 */
21 public $formId;
22
23 /**
24 * @since 2.13.0
25 *
26 * @param array $array
27 */
28 public static function fromArray($array)
29 {
30 $self = new static();
31
32 $self->accountSlug = ! empty($array['account_slug']) ? $array['account_slug'] : '';
33 $self->formId = ! empty($array['form_id']) ? absint($array['form_id']) : '';
34
35 return $self;
36 }
37 }
38