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

ResponseMaps   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 getBeatMaps() 0 3 1
A setBeatMaps() 0 4 1
1
<?php
2
3
namespace KriKrixs\object\response;
4
5
class ResponseMaps extends Response
6
{
7
    private array $beatMaps = [];
8
9
    /**
10
     * Get beatmaps (array of BeatMap object)
11
     * @return array
12
     */
13
    public function getBeatMaps(): array
14
    {
15
        return $this->beatMaps;
16
    }
17
18
    /**
19
     * Set beatmaps
20
     * @param array $beatMaps
21
     * @return ResponseMaps
22
     */
23
    public function setBeatMaps(array $beatMaps): ResponseMaps
24
    {
25
        $this->beatMaps = $beatMaps;
26
        return $this;
27
    }
28
}