gossi\codegen\generator\CodeGenerator::__construct PHP Method

__construct() public method

public __construct ( CodeGeneratorConfig | array $config = null )
$config gossi\codegen\config\CodeGeneratorConfig | array
    public function __construct($config = null)
    {
        $this->configure($config);
        $this->generator = new ModelGenerator($this->config);
    }

Usage Example

 /**
  * Creates a new CodeFileGenerator
  *
  * @see https://php-code-generator.readthedocs.org/en/latest/generator.html
  * @param CodeFileGeneratorConfig|array $config
  */
 public function __construct($config = null)
 {
     parent::__construct($config);
 }