# give/4.17.0/src/PaymentGateways/Stripe/DataTransferObjects/DisconnectStripeAccountDto.php

GiveWP – Donation Plugin and Fundraising Platform, version 4.17.0. 39 lines.

- Page: https://pluginprobe.com/plugins/give/4.17.0/code/src/PaymentGateways/Stripe/DataTransferObjects/DisconnectStripeAccountDto.php
- Raw: https://pluginprobe.com/plugins/give/4.17.0/raw/src/PaymentGateways/Stripe/DataTransferObjects/DisconnectStripeAccountDto.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.17.0/code/src/PaymentGateways/Stripe/DataTransferObjects/DisconnectStripeAccountDto.php#L10-L20`.

```php
<?php

namespace Give\PaymentGateways\Stripe\DataTransferObjects;

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

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

        $self->accountType = ! empty($array['account_type']) ? $array['account_type'] : '';
        $self->accountSlug = ! empty($array['account_slug']) ? $array['account_slug'] : '';

        return $self;
    }
}

```
