CreateStripeAccountAction   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 28
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A run() 0 13 1
1
<?php
2
3
namespace App\Containers\Stripe\Actions;
4
5
use App\Containers\Stripe\Tasks\CreateStripeAccountObjectTask;
6
use App\Containers\User\Models\User;
7
use App\Ship\Parents\Actions\Action;
8
9
/**
10
 * Class CreateStripeAccountAction.
11
 *
12
 * @author Mahmoud Zalt <[email protected]>
13
 */
14
class CreateStripeAccountAction extends Action
15
{
16
17
    /**
18
     * @param \App\Containers\User\Models\User $user
19
     * @param                                  $customer_id
20
     * @param                                  $card_id
21
     * @param                                  $card_funding
22
     * @param                                  $card_last_digits
23
     * @param                                  $card_fingerprint
24
     *
25
     * @return  mixed
26
     */
27
    public function run(User $user, $customer_id, $card_id, $card_funding, $card_last_digits, $card_fingerprint)
28
    {
29
        $stripeAccount = $this->call(CreateStripeAccountObjectTask::class, [
30
            $user,
31
            $customer_id,
32
            $card_id,
33
            $card_funding,
34
            $card_last_digits,
35
            $card_fingerprint
36
        ]);
37
38
        return $stripeAccount;
39
    }
40
41
}
42