/** * @param string $shortLink * @param bool $createChecklistIfNotExisting * @return Checklist|null */ public function getChecklistFromCardShortLink($shortLink, $createChecklistIfNotExisting = false) { $this->setApi(); $card = $this->api->getCardByShortLink($shortLink); if (!$card) { return null; } $issueChecklist = $this->getChecklistFromCard($card, $createChecklistIfNotExisting); return $issueChecklist; }
/** * @return \LooplineSystems\IssueManager\Library\Trello\Api\Object\Card|null */ protected function loadCard() { $cardDto = $this->trelloWebHook->getDtoContainer()->getCardDto(); return $this->trelloApi->getCardByShortLink($cardDto->getShortLink()); }