Passed
Push — master ( 60b6ca...163cac )
by Kylian
06:19
created

ResponseMap   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 22
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getBeatMap() 0 3 1
A setBeatMap() 0 4 1
1
<?php
2
3
namespace KriKrixs\object\response;
4
5
use KriKrixs\object\beatmap\BeatMap;
6
7
class ResponseMap extends Response
8
{
9
    private ?BeatMap $beatMap = null;
10
11
    /**
12
     * Get beatmap object
13
     * @return BeatMap|null
14
     */
15
    public function getBeatMap(): ?BeatMap
16
    {
17
        return $this->beatMap;
18
    }
19
20
    /**
21
     * Set beatmap object
22
     * @param BeatMap $beatMap
23
     * @return ResponseMap
24
     */
25
    public function setBeatMap(BeatMap $beatMap): ResponseMap
26
    {
27
        $this->beatMap = $beatMap;
28
        return $this;
29
    }
30
}