Passed
Push — master ( 54e336...038bec )
by Gabriel
14:11 queued 12s
created

EventTrait::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
c 0
b 0
f 0
dl 0
loc 4
rs 10
cc 1
nc 1
nop 2
1
<?php
2
3
namespace ByTIC\EventDispatcher\Events;
4
5
/**
6
 * Trait EventTrait
7
 * @package ByTIC\EventDispatcher\Events
8
 */
9
trait EventTrait
10
{
11
    use Traits\HasNameTrait;
12
    use Traits\HasSubjectTrait;
13
    use Traits\HasArgumentsTrait;
14
    use Traits\StoppableEventTrait;
15
16
    public function __construct($subject = null, array $arguments = [])
17
    {
18
        $this->subject = $subject;
19
        $this->arguments = $arguments;
20
    }
21
}
22