Passed
Push — master ( 3e7456...bf1b04 )
by Raza
01:44
created

ChargifyClient   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 6
dl 0
loc 21
rs 10
c 0
b 0
f 0
wmc 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 10 2
1
<?php
2
3
namespace Srmklive\Chargify\Services;
4
5
use Srmklive\Chargify\Traits\ChargifyRequest;
6
7
class ChargifyClient
8
{
9
    use ChargifyRequest;
10
11
    /**
12
     * ChargifyClient constructor.
13
     *
14
     * @param string|array $config
15
     *
16
     * @throws \Exception
17
     */
18
    public function __construct($config = '')
19
    {
20
        // Setting PayPal API Credentials
21
        if (is_array($config)) {
22
            $this->setConfig($config);
23
        }
24
25
        $this->httpBodyParam = 'form_params';
26
27
        $this->options = [];
28
    }
29
}
30