2017 © Pedro Peláez
 

library state-inspector

inspects the state of a given object

image

freshcells/state-inspector

inspects the state of a given object

  • Friday, August 11, 2017
  • by ivoba
  • Repository
  • 2 Watchers
  • 0 Stars
  • 5,208 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 13 % Grown

The README.md

state-inspector

Latest Version on Packagist ![Software License][ico-license] Build Status ![Coverage Status][ico-scrutinizer] Quality Score ![Total Downloads][ico-downloads], (*1)

Use Case:
Inspect if a state tree, a nested object or any object has certain states or values., (*2)

An Inspector can take n Inspections and an Inspection can produce several Issues. The Inspector iterates Inspections which inspect the given object., (*3)

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., (*4)

Install

Via Composer, (*5)

``` bash $ composer require freshcells/state-inspector, (*6)


## Usage $inspector = new StateInspector(); $inspector->addInspection(new FooInspection()); $issues = $inspector->inspect($object); See tests. ## Change log Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently. ## Testing ``` bash $ composer test

Contributing

Please see CONTRIBUTING and CONDUCT for details., (*7)

Security

If you discover any security related issues, please email ivo.bathke@gmail.com instead of using the issue tracker., (*8)

Credits

License

The MIT License (MIT). Please see License File for more information., (*9)

The Versions

11/08 2017

dev-master

9999999-dev https://github.com/freshcells/state-inspector

inspects the state of a given object

  Sources   Download

MIT

The Requires

  • php ~7.0

 

The Development Requires

state-inspector

11/08 2017

1.0.1

1.0.1.0 https://github.com/freshcells/state-inspector

inspects the state of a given object

  Sources   Download

MIT

The Requires

  • php ~7.0

 

The Development Requires

state-inspector

23/11 2016

1.0.0

1.0.0.0 https://github.com/freshcells/state-inspector

inspects the state of a given object

  Sources   Download

MIT

The Requires

  • php ~7.0

 

The Development Requires

state-inspector