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.
Via Composer
$ composer require freshcells/state-inspector
$inspector = new StateInspector();
$inspector->addInspection(new FooInspection());
$issues = $inspector->inspect($object);
See tests.
Please see CHANGELOG for more information what has changed recently.
$ composer test
Please see CONTRIBUTING and CONDUCT for details.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.