freshcells/state-inspector
最新稳定版本:2.1.0
Composer 安装命令:
composer require freshcells/state-inspector
包简介
inspects the state of a given object
关键字:
README 文档
README
Use Case:
Inspect if a state tree, a nested object or any object has certain states or values.
An Inspector can take n Inspections and an Inspection can produce several Issues. The Inspector iterates Inspections which inspect the given object.
When the bubble option is true it will throw an exception immediatly if one occurs. If bubble is false it will collect issues and they can be retrieved after Inspector has finished.
Install
Via Composer
$ composer require freshcells/state-inspector
Usage
$inspector = new StateInspector();
$inspector->addInspection(new FooInspection());
$issues = $inspector->inspect($object);
See tests.
Change log
Please see CHANGELOG for more information what has changed recently.
Testing
$ composer test
Contributing
Please see CONTRIBUTING and CONDUCT for details.
Security
If you discover any security related issues, please email ivo.bathke@gmail.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 30.33k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-11-10