JukeboxMap::getMap()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
1
<?php
2
3
namespace eXpansion\Bundle\Maps\Structure;
4
5
use eXpansion\Framework\Core\Storage\Data\Player;
6
use Maniaplanet\DedicatedServer\Structures\Map;
7
8
class JukeboxMap
9
{
10
    /** @var Map */
11
    protected $map;
12
13
    /** @var  Player */
14
    protected $player;
15
16
17
    public function __construct($map, $player)
18
    {
19
        $this->map = $map;
20
        $this->player = $player;
21
    }
22
23
    /**
24
     * @return Player
25
     */
26
    public function getPlayer()
27
    {
28
        return $this->player;
29
    }
30
31
    /**
32
     * @param Player $player
33
     */
34
    public function setPlayer($player)
35
    {
36
        $this->player = $player;
37
    }
38
39
    /**
40
     * @return Map
41
     */
42
    public function getMap()
43
    {
44
        return $this->map;
45
    }
46
47
    /**
48
     * @param Map $map
49
     */
50
    public function setMap($map)
51
    {
52
        $this->map = $map;
53
    }
54
55
56
}
57