Download the PHP package dhii/args-list-validation without Composer
On this page you can find all versions of the php package dhii/args-list-validation. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download dhii/args-list-validation
More information about dhii/args-list-validation
Files in dhii/args-list-validation
Package args-list-validation
Short Description Validation of an arguments list
License MIT
Informations about the package args-list-validation
Dhii - Args List Validator
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
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.