Completed
Push — master ( 052401...b48953 )
by De Cramer
03:27
created

MatchDataProvider   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A onStartMatchStart() 0 4 1
A onStartMatchEnd() 0 4 1
1
<?php
2
3
namespace eXpansion\Framework\GameManiaplanet\DataProviders;
4
5
use eXpansion\Framework\Core\DataProviders\AbstractDataProvider;
6
use eXpansion\Framework\Core\Storage\MapStorage;
7
8
/**
9
 * Class MatchDataProvider
10
 *
11
 * @package eXpansion\Framework\GameManiaplanet\DataProviders;
12
 * @author  oliver de Cramer <[email protected]>
13
 */
14
class MatchDataProvider extends AbstractDataProvider
15
{
16
17
    /**
18
     * Callback sent when the "StartMatch" section start.
19
     *
20
     * @param array $params
21
     */
22
    public function onStartMatchStart($params)
23
    {
24
        $this->dispatch('onStartMatchStart', [$params['count'], $params['time']]);
25
    }
26
27
    /**
28
     * Callback sent when the "StartMatch" section end.
29
     *
30
     * @param array $params
31
     */
32
    public function onStartMatchEnd($params)
33
    {
34
        $this->dispatch('onStartMatchEnd', [$params['count'], $params['time']]);
35
    }
36
}
37