zendframework/zf2-documentation — pull request #1257 by acelaya (2014-04-20 11:24:47+00:00)
Title: Fixed some syntax errors

The `Zend\Code\Generator\ClassGenerator` class does not have a `setMethod` method which takes a `Zend\Code\Generator\MethodGenerator` param. Instead the `addMethodFromGenerator` method exists.

Also an object of type `Zend\Code\Generator\FileGenerator` cannot be echoed, the `generate` method should be called instead.