/** * @param Command|SearchPlayListsCommand $command * * @return mixed */ public function handle(Command $command) { $playLists = $this->playListRepository->findAll(); return $this->searchPlayListsCommandResultDataTransformer->transform(SearchPlayListsCommandResult::instance($playLists)); }