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

AbstractObserver   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 25
rs 10
c 0
b 0
f 0
ccs 0
cts 4
cp 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
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