Completed
Push — master ( e09c01...ac9146 )
by De Cramer
02:18 queued 02:12
created

MatchDataProvider::onEndMatchStart()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
crap 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
     * XMLRPC Api Version >=2.0.0:
20
     * @param array $params
21
     */
22 1
    public function onStartMatchStart($params)
23
    {
24 1
        $this->dispatch('onStartMatchStart', [$params['count'], $params['time']]);
25 1
    }
26
27
    /**
28
     * Callback sent when the "StartMatch" section end.
29
     * XMLRPC Api Version >=2.0.0:
30
     * @param array $params
31
     */
32 1
    public function onStartMatchEnd($params)
33
    {
34 1
        $this->dispatch('onStartMatchEnd', [$params['count'], $params['time']]);
35 1
    }
36
    /**
37
     * Callback sent when the "StartMatch" section start.
38
     * XMLRPC Api Version >=2.0.0:
39
     * @param array $params
40
     */
41 1
    public function onEndMatchStart($params)
42
    {
43 1
        $this->dispatch('onEndMatchStart', [$params['count'], $params['time']]);
44 1
    }
45
46
    /**
47
     * Callback sent when the "StartMatch" section end.
48
     * XMLRPC Api Version >=2.0.0:
49
     * @param array $params
50
     */
51 1
    public function onEndMatchEnd($params)
52
    {
53 1
        $this->dispatch('onEndMatchEnd', [$params['count'], $params['time']]);
54 1
    }
55
56
    /**
57
     * Callback sent when the "StartRound" section start.
58
     * XMLRPC Api Version >=2.0.0:
59
     * @param $params
60
     */
61 1
    public function onStartRoundStart($params)
62
    {
63 1
        $this->dispatch('onStartRoundStart', [$params['count'], $params['time']]);
64 1
    }
65
66
    /**
67
     * Callback sent when the "StartRound" section end.
68
     * XMLRPC Api Version >=2.0.0:
69
     * @param $params
70
     */
71 1
    public function onStartRoundEnd($params)
72
    {
73 1
        $this->dispatch('onStartRoundEnd', [$params['count'], $params['time']]);
74 1
    }
75
    /**
76
     * Callback sent when the "StartRound" section start.
77
     * XMLRPC Api Version >=2.0.0:
78
     * @param $params
79
     */
80 1
    public function onEndRoundStart($params)
81
    {
82 1
        $this->dispatch('onEndRoundStart', [$params['count'], $params['time']]);
83 1
    }
84
85
    /**
86
     * Callback sent when the "StartRound" section end.
87
     * XMLRPC Api Version >=2.0.0:
88
     * @param $params
89
     */
90 1
    public function onEndRoundEnd($params)
91
    {
92 1
        $this->dispatch('onEndRoundEnd', [$params['count'], $params['time']]);
93 1
    }
94
95
    /**
96
     * Description: Callback sent when the "StartTurn" section start.
97
     * Version >=2.0.0:
98
     * @param $params
99
     */
100
101 1
    public function onStartTurnStart($params)
102
    {
103 1
        $this->dispatch('onStartTurnStart', [$params['count'], $params['time']]);
104 1
    }
105
106
    /**
107
     * Description: Callback sent when the "StartTurn" section ends.
108
     * Version >=2.0.0:
109
     * @param $params
110
     */
111
112 1
    public function onStartTurnEnd($params)
113
    {
114 1
        $this->dispatch('onStartTurnEnd', [$params['count'], $params['time']]);
115 1
    }
116
117
    /**
118
     * Description: Callback sent when the "EndTurn" section start.
119
     * Version >=2.0.0:
120
     * @param $params
121
     */
122
123 1
    public function onEndTurnStart($params)
124
    {
125 1
        $this->dispatch('onEndTurnStart', [$params['count'], $params['time']]);
126 1
    }
127
128
    /**
129
     * Description: Callback sent when the "onEndTurn" section ends.
130
     * Version >=2.0.0:
131
     * @param $params
132
     */
133
134 1
    public function onEndTurnEnd($params)
135
    {
136 1
        $this->dispatch('onEndTurnEnd', [$params['count'], $params['time']]);
137 1
    }
138
139
140
}
141