Plaid   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 5
dl 0
loc 14
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getValidResources() 0 6 1
1
<?php
2
3
namespace JulianBustamante\Plaid;
4
5
use JulianBustamante\Plaid\Resources\Auth;
6
use JulianBustamante\Plaid\Resources\Balance;
7
use JulianBustamante\Plaid\Resources\Exchange;
8
9
/**
10
 * Class Client
11
 *
12
 * PHP Plaid API client.
13
 * See official documentation at: https://plaid.com/docs.
14
 *
15
 * @method \GuzzleHttp\Psr7\Response auth($access_token, array $account_ids = [])
16
 * @method \GuzzleHttp\Psr7\Response exchange($public_token)
17
 * @method \GuzzleHttp\Psr7\Response balance($access_token, array $account_ids = [])
18
 *
19
 * @package JulianBustamante\Plaid
20
 */
21
class Plaid extends ServiceAbstract
22
{
23
24
    /**
25
     * {@inheritdoc}
26
     *
27
     * @return array
28
     */
29
    public static function getValidResources(): array
30
    {
31
        return [
32
            'auth' => Auth::class,
33
            'exchange' => Exchange::class,
34
            'balance' => Balance::class,
35
        ];
36
    }
37
}
38