Completed
Push — master ( 2f7a99...5fa5de )
by Matze
10:42
created

MultiEvent::getValues()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
ccs 2
cts 2
cp 1
cc 1
eloc 2
nc 1
nop 0
crap 1
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 2
    public function __construct($eventName, array $values)
26
    {
27 2
        parent::__construct($eventName);
28
29 2
        $this->values = $values;
30 2
    }
31
32
    /**
33
     * @return array
34
     */
35 2
    public function getValues()
36
    {
37 2
        return $this->values;
38
    }
39
}
40