Example #1
0
 /**
  * @param SourceConfig $source
  * @return Lane
  * @throws MapperException
  */
 public function retrieveList(SourceConfig $source)
 {
     $board = $this->client->getBoard($source->boardId);
     $lists = $board->getLists(['fields' => 'id,name']);
     foreach ($lists as $list) {
         if ($list->id === $source->listId) {
             return $list;
         }
     }
     throw new MapperException("Could not find list {$source->listId} on board {$source->boardId}.");
 }