Completed
Push — master ( 5b425e...08c9ff )
by Jared
01:46
created

AbstractEvent::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
/**
4
 * @author Jared King <[email protected]>
5
 *
6
 * @see http://jaredtking.com
7
 *
8
 * @copyright 2015 Jared King
9
 * @license MIT
10
 */
11
12
namespace Pulsar\Event;
13
14
use Pulsar\Model;
15
use Symfony\Contracts\EventDispatcher\Event;
16
17
abstract class AbstractEvent extends Event
18
{
19
    /**
20
     * @var Model
21
     */
22
    protected $model;
23
24
    public function __construct(Model $model)
25
    {
26
        $this->model = $model;
27
    }
28
29
    /**
30
     * Gets the model for this event.
31
     */
32
    public function getModel(): Model
33
    {
34
        return $this->model;
35
    }
36
}
37