I would like to have a class creating any code from given options and output it in a chosen way.I have written class for generation of simple JavaScript code for such cases where is needed to prepare JavaScript in PHP.That class has some bug that causes some problems with assembling of output code into larger blocks - and so I decided to rewrite it without that bug (I got idea how to solve it).All code is generated once (and once per change of text of section).ProblemHow to set (how to keep):what pieces of code may be generatedwhat limitations have each generated piece of code
Best practice for settings for PHP class for code generation
design;php;data;encapsulation;settings