Passed
Push — v3 ( efc739...bb78f7 )
by Austin
02:17
created

Gta5m::processResponse()   A

Complexity

Conditions 3
Paths 2

Size

Total Lines 17
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 7
CRAP Score 3

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
c 1
b 0
f 0
dl 0
loc 17
ccs 7
cts 7
cp 1
rs 10
cc 3
nc 2
nop 0
crap 3
1
<?php
2
/**
3
 * This file is part of GameQ.
4
 *
5
 * GameQ is free software; you can redistribute it and/or modify
6
 * it under the terms of the GNU Lesser General Public License as published by
7
 * the Free Software Foundation; either version 3 of the License, or
8
 * (at your option) any later version.
9
 *
10
 * GameQ is distributed in the hope that it will be useful,
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 * GNU Lesser General Public License for more details.
14
 *
15
 * You should have received a copy of the GNU Lesser General Public License
16
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
17
 */
18
19
namespace GameQ\Protocols;
20
21
/**
22
 * GTA Five M Protocol Class
23
 *
24
 * Server base can be found at https://fivem.net/
25
 *
26
 * Based on code found at https://github.com/LiquidObsidian/fivereborn-query
27
 *
28
 * @author Austin Bischoff <[email protected]>
29
 *
30
 * Adding FiveM Player List by
31
 * @author Jesse Lukas <[email protected]>
32
 *
33
 * @deprecated Use protocol CFX for querying your CitizenFX server
34
 */
35
class Gta5m extends Cfx
36
{
37
    /**
38
     * The query protocol used to make the call
39
     *
40
     * @type string
41
     */
42
    protected $protocol = 'gta5m';
43
44
    /**
45
     * String name of this protocol class
46
     *
47
     * @type string
48
     */
49
    protected $name = 'gta5m';
50
51
    /**
52
     * Longer string name of this protocol class
53
     *
54
     * @type string
55
     */
56
    protected $name_long = "GTA Five M";
57
}
58