/** * 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()); }
public function transform(Track $track) { return array('id' => $track->getId(), 'name' => $track->getName()); }