Skip to content

Commit 56ec0e1

Browse files
author
Frédéric Dewinne
authored
Merge pull request #1 from continuousphp/hotfix/status-type
fix status mistyped according API documentation
2 parents f0a24d9 + 02acb91 commit 56ec0e1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Entity/StatusTrait.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@
1414
trait StatusTrait
1515
{
1616
/**
17-
* Status of the item. It can either be active or inactive.
17+
* Status of the item.
1818
*
19-
* @var boolean
19+
* @var string
2020
*/
2121
protected $status;
2222

2323
/**
2424
* Get the status
2525
*
26-
* @return boolean
26+
* @return string
2727
*/
2828
public function getStatus()
2929
{
@@ -33,12 +33,12 @@ public function getStatus()
3333
/**
3434
* Set the status
3535
*
36-
* @param boolean $status
36+
* @param string $status
3737
* @return StatusTrait
3838
*/
3939
public function setStatus($status)
4040
{
41-
$this->status = (bool)$status;
41+
$this->status = $status;
4242
return $this;
4343
}
4444

0 commit comments

Comments
 (0)