Added findByState function

This will make it possible to find all records of a given state

Fixes #5

Signed-off-by: Frode Marton Meling <fm@saltship.com>
refactor

Signed-off-by: Frode Marton Meling <fm@saltship.com>
Added support for sending array of states into function

Signed-off-by: Frode Marton Meling <fm@saltship.com>
testing for invalid states when sending array of states

Signed-off-by: Frode Marton Meling <fm@saltship.com>
Changed function name and added a protected function for find

The protected function supports find type, so inside the Behavior it is possible to extend functionality easily.

Signed-off-by: Frode Marton Meling <fm@saltship.com>
Added findFirstByState and findCountByState

Signed-off-by: Frode Marton Meling <fm@saltship.com>
Made Available states public

Nice to have for Model

Signed-off-by: Frode Marton Meling <fm@saltship.com>
Fixed a bug with available states and added a getAvailableStates

Signed-off-by: Frode Marton Meling <fm@saltship.com>
_availableStates bug fixed

It was possible to add duplicate states and also states that only had stateTo were not included...

Signed-off-by: Frode Marton Meling <fm@saltship.com>
Added transitions data to return array of findByStatus

Signed-off-by: Frode Marton Meling <fm@saltship.com>
Fixed tests for findAllByState and findFirstByState

Signed-off-by: Frode Marton Meling <fm@saltship.com>
Fixed so getCurrentState returns initialState if state is not set

Signed-off-by: Frode Marton Meling <fm@saltship.com>
Added console, generatePDF and a new toDot function

This is not ready for merging. Still more tests are needed and the Shell needs option parser and error checking

Signed-off-by: Frode Marton Meling <fm@saltship.com>
phpcs cleanup

Signed-off-by: Frode Marton Meling <fm@saltship.com>
Fixed random color generator

Should only generate new color, per role.

Signed-off-by: Frode Marton Meling <fm@saltship.com>
Layout changes

Signed-off-by: Frode Marton Meling <fm@saltship.com>
Fixed assert test before refactor

Signed-off-by: Frode Marton Meling <fm@saltship.com>
Simple shell. Needs work and tests

Signed-off-by: Frode Marton Meling <fm@saltship.com>
New function for generating dot files that looks neat :)

Signed-off-by: Frode Marton Meling <fm@saltship.com>
Cleanup comments and added todo list

Signed-off-by: Frode Marton Meling <fm@saltship.com>