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

MultiEvent   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 30
ccs 0
cts 6
cp 0
rs 10

2 Methods

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