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

MatchDataProvider::onStartMatchStart()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
ccs 0
cts 3
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 1
crap 2
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