JukeboxMap   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 49
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 5
lcom 0
cbo 0
dl 0
loc 49
ccs 0
cts 21
cp 0
rs 10
c 0
b 0
f 0

5 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getPlayer() 0 4 1
A setPlayer() 0 4 1
A getMap() 0 4 1
A setMap() 0 4 1
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