modified the code to use sebastian/state machine
renamed check_state to check
renamed the classes using the PhpConvention
transitioned test code to state machine
Merge branch 'feature/state-machine' into develop