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

BeatMapVersionDifficultyParitySummary::getResets()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

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