Skip to content

Commit

Permalink
Merge pull request #304 from bocharsky-bw/patch-2
Browse files Browse the repository at this point in the history
Minor fix: Tweak docblocks
  • Loading branch information
Yann Rabiller authored Sep 14, 2017
2 parents a0815a7 + d8aca0e commit 0300595
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions src/Model/Sortable/Sortable.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,20 @@

trait Sortable
{
/**
* @var int
*/
protected $sort = 1;

/**
* @var bool
*/
private $reordered = false;

/**
* Get sort.
*
* @return sort.
* @return int
*/
public function getSort()
{
Expand All @@ -21,18 +27,21 @@ public function getSort()
/**
* Set sort.
*
* @param sort the value to set.
* @param int $sort Sort the value to set
*
* @return $this
*/
public function setSort($sort)
{
$this->reordered = $this->sort !== $sort;
$this->sort = $sort;
$this->sort = $sort;

return $this;
}

/**
* @return bool
*/
public function isReordered()
{
return $this->reordered;
Expand Down

0 comments on commit 0300595

Please sign in to comment.