Completed
Push — master ( 8c4be0...39f1f0 )
by Orkhan
01:13
created

Controller   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
3
namespace Orkhanahmadov\LaravelGoldenpay\Http\Controllers;
4
5
use Illuminate\Contracts\Events\Dispatcher;
6
use Orkhanahmadov\LaravelGoldenpay\Goldenpay;
7
8
abstract class Controller
9
{
10
    /**
11
     * @var Goldenpay
12
     */
13
    protected $goldenpay;
14
    /**
15
     * @var Dispatcher
16
     */
17
    protected $dispatcher;
18
19
    /**
20
     * Controller constructor.
21
     *
22
     * @param Goldenpay $goldenpay
23
     * @param Dispatcher $dispatcher
24
     */
25
    public function __construct(Goldenpay $goldenpay, Dispatcher $dispatcher)
26
    {
27
        $this->goldenpay = $goldenpay;
28
        $this->dispatcher = $dispatcher;
29
    }
30
}
31