Event   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 12
ccs 2
cts 2
cp 1
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
3
namespace Smoren\EventRouter\Events;
4
5
use Smoren\EventRouter\Links\ArrayEventLink;
6
7
/**
8
 * Event class
9
 */
10
class Event extends LinkedEvent
11
{
12
    /**
13
     * Event constructor
14
     * @param string $origin
15
     * @param string $name
16
     * @param array<mixed> $data
17
     * @param string[] $recipients
18
     */
19 12
    public function __construct(string $origin, string $name, array $data = [], array $recipients = [])
20
    {
21 12
        parent::__construct($origin, $name, new ArrayEventLink($data), $recipients);
22
    }
23
}
24