I am starting to use decorators in PHP more often these days to modify an object's behavior at run-time. My problem is primarily one of laziness, we have many legacy classes with tons of methods and the thought of having to re-write/override all of them for each decorator class makes me sad. Does anyone know of a command line utility that exists that would write these decorators for me?
Or maybe there's a better way to go about this?