コード例 #1
0
ファイル: Client.php プロジェクト: bigwhoop/trellog
 /**
  * @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();
 }
コード例 #2
0
 /**
  * @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;
 }