Completed
Pull Request — master (#148)
by De Cramer
02:37
created

ScriptMatchDataProvider::onEndRoundStart()   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
c 0
b 0
f 0
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
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
7
/**
8
 * Class MatchDataProvider
9
 *
10
 * @package eXpansion\Framework\GameManiaplanet\DataProviders;
11
 * @author  oliver de Cramer <[email protected]>
12
 */
13
class ScriptMatchDataProvider extends AbstractDataProvider
14
{
15
16
    /**
17
     * Callback sent when the "StartMatch" section start.
18
     * XMLRPC Api Version >=2.0.0:
19
     * @param array $params
20
     */
21 1
    public function onStartMatchStart($params)
22
    {
23 1
        $this->dispatch('onStartMatchStart', [$params['count'], $params['time']]);
24 1
    }
25
26
    /**
27
     * Callback sent when the "StartMatch" section end.
28
     * XMLRPC Api Version >=2.0.0:
29
     * @param array $params
30
     */
31 1
    public function onStartMatchEnd($params)
32
    {
33 1
        $this->dispatch('onStartMatchEnd', [$params['count'], $params['time']]);
34 1
    }
35
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
    /**
77
     * Callback sent when the "StartRound" section start.
78
     * XMLRPC Api Version >=2.0.0:
79
     * @param $params
80
     */
81 1
    public function onEndRoundStart($params)
82
    {
83 1
        $this->dispatch('onEndRoundStart', [$params['count'], $params['time']]);
84 1
    }
85
86
    /**
87
     * Callback sent when the "StartRound" section end.
88
     * XMLRPC Api Version >=2.0.0:
89
     * @param $params
90
     */
91 1
    public function onEndRoundEnd($params)
92
    {
93 1
        $this->dispatch('onEndRoundEnd', [$params['count'], $params['time']]);
94 1
    }
95
96
    /**
97
     * Description: Callback sent when the "StartTurn" section start.
98
     * Version >=2.0.0:
99
     * @param $params
100
     */
101
102 1
    public function onStartTurnStart($params)
103
    {
104 1
        $this->dispatch('onStartTurnStart', [$params['count'], $params['time']]);
105 1
    }
106
107
    /**
108
     * Description: Callback sent when the "StartTurn" section ends.
109
     * Version >=2.0.0:
110
     * @param $params
111
     */
112
113 1
    public function onStartTurnEnd($params)
114
    {
115 1
        $this->dispatch('onStartTurnEnd', [$params['count'], $params['time']]);
116 1
    }
117
118
    /**
119
     * Description: Callback sent when the "EndTurn" section start.
120
     * Version >=2.0.0:
121
     * @param $params
122
     */
123
124 1
    public function onEndTurnStart($params)
125
    {
126 1
        $this->dispatch('onEndTurnStart', [$params['count'], $params['time']]);
127 1
    }
128
129
    /**
130
     * Description: Callback sent when the "onEndTurn" section ends.
131
     * Version >=2.0.0:
132
     * @param $params
133
     */
134
135 1
    public function onEndTurnEnd($params)
136
    {
137 1
        $this->dispatch('onEndTurnEnd', [$params['count'], $params['time']]);
138 1
    }
139
140
141
}
142