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

Controller::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

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