]> git.mxchange.org Git - core.git/blobdiff - framework/main/classes/points/class_UserPoints.php
Continued:
[core.git] / framework / main / classes / points / class_UserPoints.php
index 39b94a2fce5b381e0142a8d267b574a527bd367b..49be57d6eb755c18deb57feaf86af1897753b18c 100644 (file)
@@ -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;
 
@@ -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();