Skip to content

Commit

Permalink
Merge pull request #1 from mrfeathers/release-1.0.2
Browse files Browse the repository at this point in the history
Release 1.0.2
  • Loading branch information
mrfeathers authored Mar 9, 2018
2 parents 1494192 + df592d8 commit ac176ca
Show file tree
Hide file tree
Showing 15 changed files with 41 additions and 41 deletions.
2 changes: 1 addition & 1 deletion src/ResponseModel/Artist.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class Artist
/** @var string */
protected $id;
/** @var string */
protected $name;
protected $name = '';

/**
* @return string
Expand Down
2 changes: 1 addition & 1 deletion src/ResponseModel/Collection/MBIdCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
class MBIdCollection extends CollectionModel
{
/** @var MBId[] */
private $mbids;
private $mbids = [];

/**
* @return MBId[]
Expand Down
2 changes: 1 addition & 1 deletion src/ResponseModel/Collection/ResultCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class ResultCollection extends CollectionModel
{

/** @var Result[] */
private $results;
private $results = [];

/**
* @return array
Expand Down
2 changes: 1 addition & 1 deletion src/ResponseModel/Collection/SubmissionCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class SubmissionCollection extends CollectionModel
{

/** @var Submission[] */
private $submissions;
private $submissions = [];

/**
* @return Submission[]
Expand Down
2 changes: 1 addition & 1 deletion src/ResponseModel/Collection/TrackCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
class TrackCollection extends CollectionModel
{
/** @var Track[] */
private $tracks;
private $tracks = [];

/**
* @return Track[]
Expand Down
6 changes: 3 additions & 3 deletions src/ResponseModel/Date.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
class Date
{
/** @var int */
private $day;
private $day = 0;
/** @var int */
private $month;
private $month = 0;
/** @var int */
private $year;
private $year = 0;

/**
* @return int
Expand Down
2 changes: 1 addition & 1 deletion src/ResponseModel/MBId.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class MBId
/** @var string */
protected $mbid;
/** @var Track[] */
protected $tracks;
protected $tracks = [];

/**
* @return string
Expand Down
8 changes: 4 additions & 4 deletions src/ResponseModel/Medium.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ class Medium
/** @var Track[] */
protected $tracks = [];
/** @var int */
protected $position;
protected $position = 0;
/** @var string */
protected $format;
protected $format = '';
/** @var int */
protected $trackCount;
protected $trackCount = 0;
/** @var string */
protected $title;
protected $title = '';

/**
* @return Track[]
Expand Down
8 changes: 4 additions & 4 deletions src/ResponseModel/Recording.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ class Recording
/** @var string */
protected $id;
/** @var float */
protected $score;
protected $score = 0;
/** @var int */
protected $sources;
protected $sources = 0;
/** @var string */
protected $title;
protected $title = '';
/** @var float */
protected $duration;
protected $duration = 0;
/** @var Artist[] */
protected $artists = [];
/** @var ReleaseGroup[] */
Expand Down
18 changes: 9 additions & 9 deletions src/ResponseModel/Release.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ class Release
/** @var string */
protected $id;
/** @var string */
protected $title;
protected $title = '';
/** @var int */
protected $trackCount;
protected $trackCount = 0;
/** @var int */
protected $mediumCount;
protected $mediumCount = 0;
/** @var ReleaseEvent[] */
protected $releaseEvents = [];
/** @var string */
protected $country;
protected $country = '';
/** @var Date */
protected $date;
protected $date = null;
/** @var Medium[] */
protected $mediums = [];

Expand Down Expand Up @@ -70,9 +70,9 @@ public function getCountry(): string
}

/**
* @return Date
* @return Date|null
*/
public function getDate(): Date
public function getDate(): ?Date
{
return $this->date;
}
Expand Down Expand Up @@ -142,9 +142,9 @@ public function setCountry(string $country): void
}

/**
* @param Date $date
* @param Date|null $date
*/
public function setDate(Date $date): void
public function setDate(?Date $date): void
{
$this->date = $date;
}
Expand Down
12 changes: 6 additions & 6 deletions src/ResponseModel/ReleaseEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
class ReleaseEvent
{
/** @var string */
protected $country;
protected $country = '';
/** @var Date */
protected $date;
protected $date = null;

/**
* @return string
Expand All @@ -19,9 +19,9 @@ public function getCountry(): string
}

/**
* @return Date
* @return Date|null
*/
public function getDate(): Date
public function getDate(): ?Date
{
return $this->date;
}
Expand All @@ -35,9 +35,9 @@ public function setCountry(string $country): void
}

/**
* @param Date $date
* @param Date|null $date
*/
public function setDate(Date $date): void
public function setDate(?Date $date): void
{
$this->date = $date;
}
Expand Down
4 changes: 2 additions & 2 deletions src/ResponseModel/ReleaseGroup.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ class ReleaseGroup
/** @var string */
protected $id;
/** @var string */
protected $type;
protected $type = '';
/** @var Artist[] */
protected $artists = [];
/** @var string */
protected $title;
/** @var Release[] */
protected $releases = [];
/** @var array */
protected $secondaryTypes;
protected $secondaryTypes = [];

/**
* @return string
Expand Down
2 changes: 1 addition & 1 deletion src/ResponseModel/Result.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class Result
/** @var string */
protected $id;
/** @var float */
protected $score;
protected $score = 0;
/** @var Recording[] */
protected $recordings = [];

Expand Down
8 changes: 4 additions & 4 deletions src/ResponseModel/Submission.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
class Submission
{
/** @var int */
protected $index;
protected $index = 0;
/** @var string */
protected $status;
protected $status = '';
/** @var int */
protected $id;
protected $id = 0;
/** @var array - ['id' => string] */
protected $result;
protected $result = [];

/**
* @return int
Expand Down
4 changes: 2 additions & 2 deletions src/ResponseModel/Track.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ class Track
/** @var string */
protected $id;
/** @var string */
protected $title;
protected $title = '';
/** @var int */
protected $position;
protected $position = 0;
/** @var Artist[] */
protected $artists = [];

Expand Down

0 comments on commit ac176ca

Please sign in to comment.