/** * @param string $boardId * @return Lane[] */ public function getListsForBoard($boardId) { $board = new Board($this); $board->setId($boardId); /** @var Board $board */ $board = $board->get(); return $board->getLists(); }
/** * @param string $listName * @param Board $board * * @return Cardlist|void */ public function getListFromBoard(string $listName, Board $board) { $lists = $this->client->api('board')->lists()->all($board->getId()); foreach ($lists as $list) { if ($list['name'] == $listName) { return new Cardlist($this->client, $list['id']); } } return; }