Methods for validating and verifying data

Trait
Methods
private arrayHasKeys(array $input, array $keys)
 
Check that the given $input array contains each of given $keys.

  • return void
  • throws InvalidArgumentException
private validateBatch(array $input, $type, ?callable $additionalCheck = NULL)
 
Check that each member of $input array is of type $type.

  • return void
  • throws InvalidArgumentException
© 2020 Bruce Wells
Search Namespaces \ Classes
ConfigurationNumbers (0-9.) only