*
* @author Roland Haeder <webmaster@shipsimu.org>
* @version 0.0.0
- * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2021 Core Developer Team
+ * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2022 Core Developer Team
* @license GNU GPL 3.0 or any newer version
* @link http://www.shipsimu.org
*
* @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;
// Has he enought points?
$hasRequired = ($currEntry['points'] >= $requiredPoints);
- } // END - if
+ }
// Return the result
return $hasRequired;
* @param $amount Amount of points we shall book
* @return void
*/
- public function bookPointsDirectly ($amount) {
+ public function bookPointsDirectly (float $amount) {
// Rewind always
$this->getResultInstance()->rewind();