jameshalsall/object-hydrator — pull request #2 by markwilson (2014-11-21 15:18:15+00:00)
Title: Allow callable class names

To provide an easy way to customise the class used based on contextual data I've updated the `$className` variable to be either a `string` or `callable`. A shared method is used between the existing hydrators to return the hydratable class name.