Esempio n. 1
0
 /**
  * Removes a track from the playlist.
  *
  * @param  Track $track The track to remove from the playlist.
  * @return void
  */
 public function removeTrack(Track $track)
 {
     $this->tracks->remove($track->getId());
 }
Esempio n. 2
0
 public function transform(Track $track)
 {
     return array('id' => $track->getId(), 'name' => $track->getName());
 }