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()
.
GetArgsListErrorsCapableTrait
- Produces a list of reasons for an args list being invalid against a param spec.GetValueTypeErrorCapableTrait
- Produces a reason for a value being invalid against a type criteria.