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

BeatMapVersionDifficultyParitySummary   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 38
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
c 1
b 0
f 0
dl 0
loc 38
rs 10
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getErrors() 0 3 1
A __construct() 0 3 1
A getResets() 0 3 1
A getWarns() 0 3 1
1
<?php
2
3
namespace KriKrixs\object\beatmap;
4
5
class BeatMapVersionDifficultyParitySummary
6
{
7
    private object $paritySummary;
8
9
    /**
10
     * Create a new BeatMapVersionDifficultyParitySummary object
11
     * @param object $paritySummary
12
     */
13
    public function __construct(object $paritySummary)
14
    {
15
        $this->paritySummary = $paritySummary;
16
    }
17
18
    /**
19
     * Get map version difficulty parity summary errors
20
     * @return int
21
     */
22
    public function getErrors(): int
23
    {
24
        return $this->paritySummary->errors;
25
    }
26
27
    /**
28
     * Get map version difficulty parity summary resets
29
     * @return int
30
     */
31
    public function getResets(): int
32
    {
33
        return $this->paritySummary->resets;
34
    }
35
36
    /**
37
     * Get map version difficulty parity summary warns
38
     * @return int
39
     */
40
    public function getWarns(): int
41
    {
42
        return $this->paritySummary->warns;
43
    }
44
}