for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace TrelloBurndown\Manager;
use TrelloBurndown\Client\TrelloClient;
use Trello\Manager;
/**
* Class BoardManager.
*/
class BoardManager
{
* @var \Trello\Client
protected $client;
* BoardManager constructor.
*
* @param TrelloClient $trelloClient
public function __construct(TrelloClient $trelloClient)
$this->client = $trelloClient->getClient();
}
* Return in instance of Board get from the board name.
* @param string $boardName
* @return \Trello\Model\Board|null
public function getBoard(String $boardName)
$boards = $this->client->api('member')->boards()->all('me');
foreach ($boards as $board) {
if ($board['name'] == $boardName) {
$boardId = $board['id'];
$manager = new Manager($this->client);
if (!isset($boardId)) {
return;
return $manager->getBoard($boardId);