* @param $amount Amount of points to store
* @return void
*/
- public final function setAmount ($amount) {
+ public final function setAmount (float $amount) {
$this->amount = (float) $amount;
}
* @return $hasRequired Whether the user has the required points
* @todo Finish loading part of points
*/
- public function ifUserHasRequiredPoints ($action) {
+ public function ifUserHasRequiredPoints (string $action) {
// Default is that everyone is poor... ;-)
$hasRequired = false;
* @param $amount Amount of points we shall book
* @return void
*/
- public function bookPointsDirectly ($amount) {
+ public function bookPointsDirectly (float $amount) {
// Rewind always
$this->getResultInstance()->rewind();