willdurand/StateMachineBehavior — pull request #9 by havvg (2012-11-20 11:04:37+00:00)
Title: add getNormalizedStates

Allow to retrieve a list of all normalized states, example use-case:

```php
filterByMerchant($rating->getMerchant())
->find()
;

$distribution = array_fill_keys(Rating::getNormalizedStates(), 0);

/* @var $eachRating Rating */
foreach ($ratings as $eachRating) {
$distribution[$eachRating->getNormalizedState()]++;
}
```