public function generate(array $config, $namespace = null)
    {
        $this->writeLine('<?php'.PHP_EOL);

        if ($namespace) {
            $this->writeLine("namespace $namespace;".PHP_EOL);
        }

        $this->indent = 0;

        $this->writeLine('return [');

        $this->generateArray($config);

        $this->writeLine('];');

        return $this->text;
    }