Skip to content

Commit

Permalink
Merge pull request #25 from wilr/master
Browse files Browse the repository at this point in the history
Allow chaining for setMaximum, setMinimum
  • Loading branch information
tractorcow authored May 18, 2023
2 parents c7565ec + 2e54e81 commit 04f0ae1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Fields/SliderField.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ public function setMaximum($maximum)
$maximum = self::config()->default_maximum;
}
$this->maximum = $maximum;

return $this;
}

/**
Expand All @@ -121,6 +123,7 @@ public function setMinimum($minimum)
$minimum = self::config()->default_minimum;
}
$this->minimum = $minimum;
return $this;
}

public function Field($properties = array())
Expand Down

0 comments on commit 04f0ae1

Please sign in to comment.