Beispiel #1
0
 /**
  * {@inheritDoc}
  */
 public static function fromObject($object)
 {
     $retval = new Album();
     $retval->ids = (array) $object->ids;
     $retval->title = $object->title;
     $retval->primaryArtists = Artist::fromObjectArray((array) $object->primaryArtists);
     $retval->guestArtists = Artist::fromObjectArray((array) $object->guestArtists);
     $retval->flags = $object->flags;
     $retval->duration = $object->duration;
     $retval->originalReleaseDate = $object->originalReleaseDate;
     $retval->rating = $object->rating;
     $retval->isPick = $object->isPick;
     $retval->genres = Genre::fromObjectArray((array) $object->genres);
     $retval->headlineReview = $object->headlineReview;
     $retval->classicalReview = ClassicalReview::fromObject($object->classicalReview);
     $retval->credits = Credit::fromObjectArray((array) $object->credits);
     $retval->tracks = Track::fromObjectArray((array) $object->tracks);
     $retval->styles = Style::fromObjectArray((array) $object->styles);
     return $retval;
 }