Plaid::getValidResources()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
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