Completed
Pull Request — master (#124)
by
unknown
02:35
created

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