Completed
Pull Request — master (#23)
by ARCANEDEV
10:18
created

AbstractObserver   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php namespace Arcanedev\LaravelAuth\Models\Observers;
2
3
use Illuminate\Contracts\Events\Dispatcher;
4
5
/**
6
 * Class     AbstractObserver
7
 *
8
 * @package  Arcanedev\LaravelAuth\Models\Observers
9
 * @author   ARCANEDEV <[email protected]>
10
 */
11
abstract class AbstractObserver
12
{
13
    /* ------------------------------------------------------------------------------------------------
14
     |  Properties
15
     | ------------------------------------------------------------------------------------------------
16
     */
17
    /**
18
     * The event dispatcher instance.
19
     *
20
     * @var \Illuminate\Contracts\Events\Dispatcher
21
     */
22
    protected $event;
23
24
    /* ------------------------------------------------------------------------------------------------
25
     |  Constructor
26
     | ------------------------------------------------------------------------------------------------
27
     */
28
    /**
29
     * UserObserver constructor.
30
     *
31
     * @param  \Illuminate\Contracts\Events\Dispatcher  $event
32
     */
33 168
    public function __construct(Dispatcher $event)
34
    {
35 168
        $this->event = $event;
36 168
    }
37
}
38