# give/4.15.5/src/PaymentGateways/Stripe/DataTransferObjects/SetDefaultStripeAccountDto.php

GiveWP – Donation Plugin and Fundraising Platform, version 4.15.5. 38 lines.

- Page: https://pluginprobe.com/plugins/give/4.15.5/code/src/PaymentGateways/Stripe/DataTransferObjects/SetDefaultStripeAccountDto.php
- Raw: https://pluginprobe.com/plugins/give/4.15.5/raw/src/PaymentGateways/Stripe/DataTransferObjects/SetDefaultStripeAccountDto.php
- Modified: 2022-10-31T21:53:38+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/give/4.15.5/code/src/PaymentGateways/Stripe/DataTransferObjects/SetDefaultStripeAccountDto.php#L10-L20`.

```php
<?php

namespace Give\PaymentGateways\Stripe\DataTransferObjects;

/**
 * Class SetDefaultStripeAccountDto
 * @package Give\PaymentGateways\Stripe\DataTransferObjects
 *
 * @since   2.13.0
 */
final class SetDefaultStripeAccountDto
{
    /**
     * @var mixed|string
     */
    public $accountSlug;

    /**
     * @var int|string
     */
    public $formId;

    /**
     * @since 2.13.0
     *
     * @param array $array
     */
    public static function fromArray($array)
    {
        $self = new static();

        $self->accountSlug = ! empty($array['account_slug']) ? $array['account_slug'] : '';
        $self->formId = ! empty($array['form_id']) ? absint($array['form_id']) : '';

        return $self;
    }
}

```
