dhii/args-list-validation

Validation of an arguments list

v0.1-alpha1 2018-03-12 04:34 UTC

This package is auto-updated.

Last update: 2024-04-07 03:11:06 UTC


README

Build Status Code Climate Test Coverage Latest Stable Version Latest Unstable Version This package complies with Dhii standards

Details

This package contains functionality for validation of a list of values against a specification. Currently, this specification is accepted in the form of a list of ReflectionParameter criteria, which is typically retrieved via ReflectionFunctionAbstract#getParameters(). Thus, it is possible to validate a list of arguments to determine whether any function or method can be invoked with it - without actually invoking.

It is also possible to use functionality in this package to determine whether any individual value matches a type criterion in the form of a ReflectionType, which is typically retrieved via ReflectionParameter#getType().

Traits