X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=framework%2Fmain%2Fclasses%2Fpoints%2Fclass_UserPoints.php;h=d38c270e451f99848b746ce29c06e933ff57670f;hb=refs%2Fheads%2Fmaster;hp=e6ef4abe681f51636bf872486dd7509d9aa0cdf0;hpb=3ed365cb1808ac8a228da18241e789866f419178;p=core.git diff --git a/framework/main/classes/points/class_UserPoints.php b/framework/main/classes/points/class_UserPoints.php index e6ef4abe..8f451ce3 100644 --- a/framework/main/classes/points/class_UserPoints.php +++ b/framework/main/classes/points/class_UserPoints.php @@ -18,7 +18,7 @@ use Org\Mxchange\CoreFramework\User\ManageableAccount; * * @author Roland Haeder * @version 0.0.0 - * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2020 Core Developer Team + * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2023 Core Developer Team * @license GNU GPL 3.0 or any newer version * @link http://www.shipsimu.org * @@ -97,7 +97,7 @@ class UserPoints extends BaseFrameworkSystem implements Registerable, BookablePo * @param $amount Amount of points to store * @return void */ - public final function setAmount ($amount) { + public final function setAmount (float $amount) { $this->amount = (float) $amount; } @@ -117,7 +117,7 @@ class UserPoints extends BaseFrameworkSystem implements Registerable, BookablePo * @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; @@ -134,7 +134,7 @@ class UserPoints extends BaseFrameworkSystem implements Registerable, BookablePo // Has he enought points? $hasRequired = ($currEntry['points'] >= $requiredPoints); - } // END - if + } // Return the result return $hasRequired; @@ -146,7 +146,7 @@ class UserPoints extends BaseFrameworkSystem implements Registerable, BookablePo * @param $amount Amount of points we shall book * @return void */ - public function bookPointsDirectly ($amount) { + public function bookPointsDirectly (float $amount) { // Rewind always $this->getResultInstance()->rewind();