Skip to content

Commit

Permalink
Merge pull request #1 from rafistrauss/fix-comment-api
Browse files Browse the repository at this point in the history
Use string instead of non-existent CommentInterface (see cdaguerre#60)
  • Loading branch information
rafistrauss authored Apr 3, 2018
2 parents 579530b + 7370f80 commit fb4f642
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/Event/CardCommentEvent.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

### Set comment
```php
setComment(\Trello\Model\CommentInterface $comment)
setComment(string $comment)
```

### Get comment
Expand Down
10 changes: 4 additions & 6 deletions lib/Trello/Event/CardCommentEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,27 @@

namespace Trello\Event;

use Trello\Model\CommentInterface;

class CardCommentEvent extends CardEvent
{
/**
* @var CommentInterface
* @var string
*/
protected $comment;

/**
* Set comment
*
* @param CommentInterface $comment
* @param string $comment
*/
public function setComment(CommentInterface $comment)
public function setComment(string $comment)
{
$this->comment = $comment;
}

/**
* Get comment
*
* @return CommentInterface
* @return string
*/
public function getComment()
{
Expand Down

0 comments on commit fb4f642

Please sign in to comment.