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

ResponseMap::setBeatMap()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 4
rs 10
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
}