Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor Chepurnoy authored Jan 9, 2017
1 parent e3562bf commit 65a97ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,13 @@ class CommentModel extends ActiveRecord

public function setStatus(PostStatus $status)
{
$this->status = $status;
$this->status = $status->getValue();
}

public function getStatus()
{
if (!$this->status) {
$this->status = PostStatus::PENDING();
$this->status = PostStatus::PENDING;
}
return $this->status;
}
Expand Down

0 comments on commit 65a97ab

Please sign in to comment.