Skip to content

Commit 4c13128

Browse files
committed
Added actions to card model
addComment, removeComment and getActions methods added
1 parent ed068d5 commit 4c13128

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

lib/Trello/Model/Card.php

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -775,6 +775,27 @@ public function getDateOfLastActivity()
775775
return new \DateTime($this->data['dateLastActivity']);
776776
}
777777

778+
/**
779+
* {@inheritdoc}
780+
*/
781+
public function getActions($params = array()) {
782+
return $this->api->actions()->all($this->id, $params);
783+
}
784+
785+
/**
786+
* {@inheritdoc}
787+
*/
788+
public function addComment($text) {
789+
return $this->api->actions()->addComment($this->id, $text);
790+
}
791+
792+
/**
793+
* {@inheritdoc}
794+
*/
795+
public function removeComment($commentId) {
796+
return $this->api->actions()->removeComment($this->id, $commentId);
797+
}
798+
778799
/**
779800
* {@inheritdoc}
780801
*/

0 commit comments

Comments
 (0)