Major changes, revamp required
This commit is contained in:
parent
1f9890bba0
commit
29a3d42538
20 changed files with 523 additions and 662 deletions
|
@ -87,6 +87,26 @@
|
|||
return isset($this->parameters[$parameter]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if the parameters exist within the RPC request
|
||||
*
|
||||
* @param array $parameters The parameters to check
|
||||
* @param bool $nullAllowed True if the parameter value can be null, False otherwise.
|
||||
* @return bool True if the parameters exist, False otherwise.
|
||||
*/
|
||||
public function containsParameters(array $parameters, bool $nullAllowed=false): bool
|
||||
{
|
||||
foreach($parameters as $parameter)
|
||||
{
|
||||
if(!$this->containsParameter($parameter, $nullAllowed))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the parameter value from the RPC request
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue