Completed
Push — master ( 21a839...20b252 )
by ARCANEDEV
7s
created

AbstractObserver::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
ccs 0
cts 4
cp 0
cc 1
eloc 2
nc 1
nop 1
crap 2
1
<?php namespace Arcanesoft\Blog\Models\Observers;
2
3
use Illuminate\Contracts\Events\Dispatcher;
4
5
/**
6
 * Class     AbstractObserver
7
 *
8
 * @package  Arcanesoft\Blog\Models\Observers
9
 * @author   ARCANEDEV <[email protected]>
10
 */
11
abstract class AbstractObserver
12
{
13
    /* ------------------------------------------------------------------------------------------------
14
     |  Properties
15
     | ------------------------------------------------------------------------------------------------
16
     */
17
    /**
18
     * @var \Illuminate\Contracts\Events\Dispatcher
19
     */
20
    protected $event;
21
22
    /* ------------------------------------------------------------------------------------------------
23
     |  Constructor
24
     | ------------------------------------------------------------------------------------------------
25
     */
26
    /**
27
     * AbstractObserver constructor.
28
     *
29
     * @param  \Illuminate\Contracts\Events\Dispatcher  $event
30
     */
31
    public function __construct(Dispatcher $event)
32
    {
33
        $this->event = $event;
34
    }
35
}
36