/** * Test setting and getting api key and token */ public function testSetApiKeyAndToken() { $trelloClient = new TrelloClient($this->apiKey, $this->apiToken); $trelloClient->setApiKey($this->apiKey . "abc"); $trelloClient->setApiToken($this->apiToken . "def"); $this->assertEquals($this->apiKey . "abc", $trelloClient->getApiKey()); $this->assertEquals($this->apiToken . "def", $trelloClient->getApiToken()); }
/** * StoryPointsManager constructor. * * @param TrelloClient $trelloClient * @param ActionManager $actionManager * @param string $pattern */ public function __construct(TrelloClient $trelloClient, ActionManager $actionManager, string $pattern = null) { $this->client = $trelloClient->getClient(); $this->actionManager = $actionManager; if (!is_null($pattern)) { $this->pattern = $pattern; } }
/** * BoardManager constructor. * * @param TrelloClient $trelloClient */ public function __construct(TrelloClient $trelloClient) { $this->client = $trelloClient->getClient(); }