/**
  * @param Card $card
  * @param Checklist $checklist
  * @param ChecklistItem $checkItem
  * @param string $newState
  */
 protected function updateItemIfStatusChanged(ChecklistItem $checkItem, $newState)
 {
     if ($checkItem->getChecked() != $newState) {
         $checkItem->setChecked($newState);
         $this->getTrelloApi()->updateChecklistItem($this->card, $this->checklist, $checkItem);
     }
 }
 /**
  * @return array
  */
 public function getData()
 {
     return ['value' => $this->object->getChecked()];
 }
 /**
  * @return array
  */
 public function getData()
 {
     return ['name' => $this->object->getName(), 'pos' => $this->object->getPos(), 'checked' => $this->object->getChecked()];
 }
 /**
  * @param Checklist $checklist
  * @param RepositoryInformation $repoInfo
  * @param $title
  * @return ChecklistItem
  */
 public function createChecklistItem(Checklist $checklist, RepositoryInformation $repoInfo, $title)
 {
     $itemName = IssueReference::createReferenceFromRepositoryInformation($repoInfo, $title);
     $checklistItem = new ChecklistItem();
     $checklistItem->setIdChecklist($checklist->getId());
     $checklistItem->setName($itemName);
     return $this->api->createChecklistItem($checklistItem);
 }