Skip to content

Commit

Permalink
Merge pull request #1 from continuousphp/hotfix/status-type
Browse files Browse the repository at this point in the history
fix status mistyped according API documentation
  • Loading branch information
Frédéric Dewinne authored Mar 3, 2017
2 parents f0a24d9 + 02acb91 commit 56ec0e1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Entity/StatusTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@
trait StatusTrait
{
/**
* Status of the item. It can either be active or inactive.
* Status of the item.
*
* @var boolean
* @var string
*/
protected $status;

/**
* Get the status
*
* @return boolean
* @return string
*/
public function getStatus()
{
Expand All @@ -33,12 +33,12 @@ public function getStatus()
/**
* Set the status
*
* @param boolean $status
* @param string $status
* @return StatusTrait
*/
public function setStatus($status)
{
$this->status = (bool)$status;
$this->status = $status;
return $this;
}

Expand Down

0 comments on commit 56ec0e1

Please sign in to comment.