Skip to content

Commit 8a9b787

Browse files
committed
Allow bitrate and format to be null when AutoDJ is disabled.
1 parent 257eb70 commit 8a9b787

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

src/Dto/MountDto.php

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ class MountDto implements \JsonSerializable
2626
protected $url;
2727

2828
/**
29-
* @var int
29+
* @var int|null
3030
*/
3131
protected $bitrate;
3232

3333
/**
34-
* @var string
34+
* @var string|null
3535
*/
3636
protected $format;
3737

@@ -40,10 +40,10 @@ class MountDto implements \JsonSerializable
4040
* @param string|null $path
4141
* @param bool $isDefault
4242
* @param string $url
43-
* @param int $bitrate
44-
* @param string $format
43+
* @param int|null $bitrate
44+
* @param string|null $format
4545
*/
46-
public function __construct(string $name, ?string $path, bool $isDefault, string $url, int $bitrate, string $format)
46+
public function __construct(string $name, ?string $path, bool $isDefault, string $url, ?int $bitrate, ?string $format)
4747
{
4848
$this->name = $name;
4949
$this->path = $path;
@@ -134,39 +134,39 @@ public function setUrl(string $url): MountDto
134134
}
135135

136136
/**
137-
* @return int
137+
* @return int|null
138138
*/
139-
public function getBitrate(): int
139+
public function getBitrate(): ?int
140140
{
141141
return $this->bitrate;
142142
}
143143

144144
/**
145-
* @param int $bitrate
145+
* @param int|null $bitrate
146146
*
147147
* @return MountDto
148148
*/
149-
public function setBitrate(int $bitrate): MountDto
149+
public function setBitrate(?int $bitrate): MountDto
150150
{
151151
$this->bitrate = $bitrate;
152152

153153
return $this;
154154
}
155155

156156
/**
157-
* @return string
157+
* @return string|null
158158
*/
159-
public function getFormat(): string
159+
public function getFormat(): ?string
160160
{
161161
return $this->format;
162162
}
163163

164164
/**
165-
* @param string $format
165+
* @param string|null $format
166166
*
167167
* @return MountDto
168168
*/
169-
public function setFormat(string $format): MountDto
169+
public function setFormat(?string $format): MountDto
170170
{
171171
$this->format = $format;
172172

0 commit comments

Comments
 (0)