dhii/args-list-validation
最新稳定版本:v0.1-alpha1
Composer 安装命令:
composer require dhii/args-list-validation
包简介
Validation of an arguments list
README 文档
README
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.
统计信息
- 总下载量: 3.91k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 5
- 推荐数: 1
其他信息
- 授权协议: MIT
- 更新时间: 2018-03-12