public function findBoard(TvShow $tvShow) { $this->logger->writeln('Suche Board für ' . $tvShow->getTitle()); $ids = $this->getBoardIds(); $t = mb_strtolower($tvShow->getTitle()); if (!array_key_exists($t, $ids)) { $e = new SubcentralTvShowNotFoundException('TvShow: "' . $tvShow . '" wurde auf Subcentral nicht gefunden! (boardIDs)'); $this->logger->writeln($e->getMessage()); throw $e; } return $ids[$t]; }