boardMapper->findAllByTeam($teamId); return array_map(function (Board $board) { return new TeamResource( $this, (string)$board->getId(), $board->getTitle(), $this->urlGenerator->linkToRouteAbsolute('deck.page.indexBoard', ['boardId' => $board->getId()]), $this->getBoardBulletIcon($board), $this->urlGenerator->getAbsoluteURL($this->urlGenerator->imagePath('deck', 'deck-current.svg')), ); }, $boards); } public function isSharedWithTeam(string $teamId, string $resourceId): bool { return $this->boardMapper->isSharedWithTeam((int)$resourceId, $teamId); } public function getTeamsForResource(string $resourceId): array { return $this->boardMapper->findTeamsForBoard((int)$resourceId); } public function getBoardBulletIcon(Board $board): string { return ''; } }