diff --git a/doc/4_Code_generation.markdown b/doc/4_Code_generation.markdown index 2c0aa0ed..ac9e4980 100644 --- a/doc/4_Code_generation.markdown +++ b/doc/4_Code_generation.markdown @@ -21,8 +21,8 @@ use PhpParser\Node; $factory = new BuilderFactory; $node = $factory->namespace('Name\Space') ->addStmt($factory->use('Some\Other\Thingy')->as('SomeOtherClass')) - ->addStmt($factory->class('SomeClass') - ->extend('SomeOtherClass') + ->addStmt($factory->class('SomeOtherClass') + ->extend('SomeClass') ->implement('A\Few', '\Interfaces') ->makeAbstract() // ->makeFinal() @@ -66,7 +66,7 @@ This will produce the following output with the standard pretty printer: namespace Name\Space; use Some\Other\Thingy as SomeClass; -abstract class SomeClass extends SomeOtherClass implements A\Few, \Interfaces +abstract class SomeOtherClass extends SomeClass implements A\Few, \Interfaces { protected $someProperty; private $anotherProperty = array(1, 2, 3);