Completed
Pull Request — master (#191)
by De Cramer
38:49 queued 31:55
created

WayPointDataProvider::onWayPoint()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 20
Code Lines 15

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 20
rs 9.4285
c 0
b 0
f 0
ccs 0
cts 16
cp 0
cc 1
eloc 15
nc 1
nop 1
crap 2
1
<?php
2
3
namespace eXpansion\Framework\GameTrackmania\DataProviders;
4
5
use eXpansion\Framework\Core\DataProviders\AbstractDataProvider;
6
7
/**
8
 * Class WayPointDataProvider
9
 *
10
 * @author    de Cramer Oliver<[email protected]>
11
 * @copyright 2017 Smile
12
 * @package eXpansion\Framework\GameTrackmania\DataProviders
13
 */
14
class WayPointDataProvider extends AbstractDataProvider
15
{
16
    public function onWayPoint($params)
17
    {
18
        $this->dispatch(
19
            'onPlayerWayPoint',
20
            [
21
                $params['login'],
22
                $params['time'],
23
                $params['racetime'],
24
                $params['laptime'],
25
                $params['stuntsscore'],
26
                $params['checkpointinrace'],
27
                $params['checkpointinlap'],
28
                $params['curracecheckpoints'],
29
                $params['curlapcheckpoints'],
30
                $params['blockid'],
31
                $params['speed'],
32
                $params['distance'],
33
            ]
34
        );
35
    }
36
}