*
* @author Roland Haeder <webmaster@shipsimu.org>
* @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
*
* @return void
* @todo Find a nice casting here. (int) allows until and including 32766.
*/
- function setLimit ($limit);
+ function setLimit (int $limit);
/**
* "Setter" for limit from a configuration entry
* @param $configEntry The configuration entry which hold a number as limit
* @return void
*/
- function setConfiguredLimit ($configEntry);
+ function setConfiguredLimit (string $configEntry);
/**
* Getter for limit
* @return void
* @todo Find a nice casting here. (int) allows until and including 32766.
*/
- function setSkip ($skip);
+ function setSkip (int $skip);
/**
* Getter for skip
* @param $value Value to check
* @param $separator Separator for "exploding" $value (default: ',')
* @return $isMatching Whether the key/value is matching or excluded
+ * @throws InvalidArgumentException If parameter is invalid
*/
- function isCriteriaMatching ($key, $value, $separator = ',');
+ function isCriteriaMatching (string $key, $value, string $separator = ',');
}