Completed
Push — master ( 1e8a8d...b66904 )
by Orkhan
01:08
created

GoldenpayController   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
1
<?php
2
3
namespace Orkhanahmadov\LaravelGoldenpay\Http\Controllers;
4
5
use Illuminate\Contracts\Config\Repository;
6
use Orkhanahmadov\Goldenpay\Goldenpay as GoldenpayLibrary;
7
8
class GoldenpayController
9
{
10
    /**
11
     * @var GoldenpayLibrary
12
     */
13
    private $goldenpay;
14
15
    /**
16
     * GoldenpayController constructor.
17
     *
18
     * @param Repository $config
19
     */
20
    public function __construct(Repository $config)
21
    {
22
        $this->goldenpay = new GoldenpayLibrary(
23
            $config->get('goldenpay.auth_key'),
24
            $config->get('goldenpay.merchant_name')
25
        );
26
    }
27
}
28