BeatMapVersionDifficulty::getBombs()   A
last analyzed

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 BeatMapVersionDifficulty
6
{
7
    private object $diff;
8
9
    /**
10
     * Create a new BeatMapVersionDifficulty object
11
     * @param object $diff
12
     */
13
    public function __construct(object $diff)
14
    {
15
        $this->diff = $diff;
16
    }
17
18
    /**
19
     * Return raw data
20
     * @return object
21
     */
22
    public function toJson(): object
23
    {
24
        return $this->diff;
25
    }
26
27
    /**
28
     * Return array data
29
     * @return array
30
     */
31
    public function toArray(): array
32
    {
33
        return json_decode(json_encode($this->diff), true);
34
    }
35
36
    /**
37
     * Get map version difficulty NJS
38
     * @return float
39
     */
40
    public function getNjs(): float
41
    {
42
        return $this->diff->njs;
43
    }
44
45
    /**
46
     * Get map version difficulty offset
47
     * @return float
48
     */
49
    public function getOffset(): float
50
    {
51
        return $this->diff->offset;
52
    }
53
54
    /**
55
     * Get map version difficulty notes
56
     * @return int
57
     */
58
    public function getNotes(): int
59
    {
60
        return $this->diff->notes;
61
    }
62
63
    /**
64
     * Get map version difficulty bombs
65
     * @return int
66
     */
67
    public function getBombs(): int
68
    {
69
        return $this->diff->bombs;
70
    }
71
72
    /**
73
     * Get map version difficulty obstacles
74
     * @return int
75
     */
76
    public function getObstacles(): int
77
    {
78
        return $this->diff->obstacles;
79
    }
80
81
    /**
82
     * Get map version difficulty NPS
83
     * @return float
84
     */
85
    public function getNps(): float
86
    {
87
        return $this->diff->nps;
88
    }
89
90
    /**
91
     * Get map version difficulty length
92
     * @return int
93
     */
94
    public function getLength(): int
95
    {
96
        return $this->diff->length;
97
    }
98
99
    /**
100
     * Get map version difficulty game mode
101
     * @return string
102
     */
103
    public function getGameMode(): string
104
    {
105
        return $this->diff->characteristic;
106
    }
107
108
    /**
109
     * Get map version difficulty game difficulty
110
     * @return string
111
     */
112
    public function getGameDifficulty(): string
113
    {
114
        return $this->diff->difficulty;
115
    }
116
117
    /**
118
     * Get map version difficulty events
119
     * @return int
120
     */
121
    public function getEvents(): int
122
    {
123
        return $this->diff->events;
124
    }
125
126
    /**
127
     * Get map version difficulty parity summary
128
     * @return BeatMapVersionDifficultyParitySummary
129
     */
130
    public function getParitySummary(): BeatMapVersionDifficultyParitySummary
131
    {
132
        return new BeatMapVersionDifficultyParitySummary($this->diff->paritySummary);
133
    }
134
135
    /**
136
     * Get map version difficulty seconds
137
     * @return int
138
     */
139
    public function getSeconds(): int
140
    {
141
        return $this->diff->seconds;
142
    }
143
144
    /**
145
     * Does map version difficulty require chroma
146
     * @return bool
147
     */
148
    public function isChromaRequired(): bool
149
    {
150
        return $this->diff->chroma;
151
    }
152
153
    /**
154
     * Does map version difficulty require mapping extensions
155
     * @return bool
156
     */
157
    public function isMappingExtensionsRequired(): bool
158
    {
159
        return $this->diff->me;
160
    }
161
162
    /**
163
     * Does map version difficulty require noodle extensions
164
     * @return bool
165
     */
166
    public function isNoodleExtensionsRequired(): bool
167
    {
168
        return $this->diff->ne;
169
    }
170
171
    /**
172
     * Is map version difficulty a cinema
173
     * @return bool
174
     */
175
    public function isCinema(): bool
176
    {
177
        return $this->diff->cinema;
178
    }
179
}