EventTrait   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
wmc 1
eloc 7
c 1
b 1
f 0
dl 0
loc 11
rs 10

1 Method

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