src/MusicBrainz/Collection.php 1 location
|
@@ 28-34 (lines=7) @@
|
25 |
|
* @param array $collection |
26 |
|
* @param MusicBrainz $brainz |
27 |
|
*/ |
28 |
|
public function __construct(array $collection, MusicBrainz $brainz) |
29 |
|
{ |
30 |
|
$this->data = $collection; |
31 |
|
$this->brainz = $brainz; |
32 |
|
|
33 |
|
$this->id = isset($collection['id']) ? (string)$collection['id'] : ''; |
34 |
|
} |
35 |
|
} |
36 |
|
|
src/MusicBrainz/ReleaseGroup.php 1 location
|
@@ 32-38 (lines=7) @@
|
29 |
|
* @param array $releaseGroup |
30 |
|
* @param MusicBrainz $brainz |
31 |
|
*/ |
32 |
|
public function __construct(array $releaseGroup, MusicBrainz $brainz) |
33 |
|
{ |
34 |
|
$this->data = $releaseGroup; |
35 |
|
$this->brainz = $brainz; |
36 |
|
|
37 |
|
$this->id = isset($releaseGroup['id']) ? (string)$releaseGroup['id'] : ''; |
38 |
|
} |
39 |
|
|
40 |
|
/** |
41 |
|
* @return string |