PodiumDataProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A onPodiumStart() 0 4 1
A onPodiumEnd() 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 PodiumDataProvider extends AbstractDataProvider
15
{
16
17
    /**
18
     * Callback sent when the "Maniaplanet.Podium_Start" section start.
19
     * XMLRPC Api Version >=2.0.0:
20
     * @param array $params
21
     */
22 1
    public function onPodiumStart($params)
23
    {
24 1
        $this->dispatch('onPodiumStart', [$params['time']]);
25 1
    }
26
27
    /**
28
     * Callback sent when the "Maniaplanet.Podium_End" section end.
29
     * XMLRPC Api Version >=2.0.0:
30
     * @param array $params
31
     */
32 1
    public function onPodiumEnd($params)
33
    {
34 1
        $this->dispatch('onPodiumEnd', [$params['time']]);
35 1
    }
36
37
}
38