public function transform(Artist $artist) { return array('id' => $artist->getId(), 'name' => $artist->getName()); }