phpowermove / php-code-generator

PHP code generator library
https://php-code-generator.readthedocs.org
Apache License 2.0
147 stars 43 forks source link

set unescaped property default value #10

Closed tristanpemble closed 8 years ago

tristanpemble commented 9 years ago

I'd like to be able to generate a property that is an array that uses constants for keys, like

    public static $fooBar = [
        Foo::FOO => 'foo',
        Foo::BAR => 'bar',
    ];

it would be nice to be able to pass in something that is not automatically escaped via var_export

gossi commented 9 years ago

sounds like a great addition. Send a PR for what you need.