Completed
Push — v3 ( 2c99c7...0fc260 )
by Austin
06:33
created

Risingstorm2::findQueryPort()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 1
crap 1
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
 * Class Rising Storm 2
23
 *
24
 * @package GameQ\Protocols
25
 * @author  Austin Bischoff <[email protected]>
26
 */
27
class Risingstorm2 extends Source
28
{
29
30
    /**
31
     * String name of this protocol class
32
     *
33
     * @type string
34
     */
35
    protected $name = 'rising storm 2';
36
37
    /**
38
     * Longer string name of this protocol class
39
     *
40
     * @type string
41
     */
42
    protected $name_long = "Rising Storm 2";
43
44
    /**
45
     * Query port is always 27015
46
     *
47
     * @param int $clientPort
48
     *
49
     * @return int
50
     */
51 4
    public function findQueryPort($clientPort)
52
    {
53 4
        return 27015;
54
    }
55
}
56