Completed
Push — master ( 66ec7e...c9ec0a )
by Matze
07:32
created

MultiEvent::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
ccs 0
cts 4
cp 0
rs 9.4285
cc 1
eloc 3
nc 1
nop 2
crap 2
1
<?php
2
3
namespace BrainExe\Core\Stats;
4
5
use BrainExe\Core\EventDispatcher\AbstractEvent;
6
7
/**
8
 * @api
9
 */
10
class MultiEvent extends AbstractEvent
11
{
12
13
    const INCREASE = 'stats.multi.increase';
14
    const SET      = 'stats.multi.set';
15
16
    /**
17
     * @var array
18
     */
19
    private $values;
20
21
    /**
22
     * @param string $eventName self::*
23
     * @param array $values
24
     */
25
    public function __construct(string $eventName, array $values)
26
    {
27
        parent::__construct($eventName);
28
29
        $this->values = $values;
30
    }
31
32
    /**
33
     * @return array
34
     */
35
    public function getValues() : array
36
    {
37
        return $this->values;
38
    }
39
}
40