Commit new state
This commit is contained in:
@@ -39,13 +39,14 @@ class CardService {
|
||||
return $this->cardMapper->delete($this->cardMapper->find($id));
|
||||
}
|
||||
|
||||
public function update($id, $title, $stackId, $type, $order, $owner) {
|
||||
public function update($id, $title, $stackId, $type, $order, $description, $owner) {
|
||||
$card = $this->cardMapper->find($id);
|
||||
$card->setTitle($title);
|
||||
$card->setStackId($stackId);
|
||||
$card->setType($type);
|
||||
$card->setOrder($order);
|
||||
$card->setOwner($owner);
|
||||
$card->setDescription($description);
|
||||
return $this->cardMapper->update($card);
|
||||
}
|
||||
|
||||
@@ -75,4 +76,13 @@ class CardService {
|
||||
$cards = $this->cardMapper->findAll($stackId);
|
||||
return $cards;
|
||||
}
|
||||
|
||||
|
||||
public function assignLabel($userId, $cardId, $labelId) {
|
||||
$this->cardMapper->assignLabel($cardId, $labelId);
|
||||
}
|
||||
|
||||
public function removeLabel($userId, $cardId, $labelId) {
|
||||
$this->cardMapper->removeLabel($cardId, $labelId);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user