protected function dumpClass($namespace, $shortClassName, array $serviceDefinitions)
    {
        $joinedServiceDefinitions = implode("\n", $serviceDefinitions);

        $namespaceSource = $namespace !== '' ? "namespace $namespace;\n\n" : '';
        $classSource = <<<EOL
class $shortClassName implements \Pimple\ServiceProviderInterface
{
    public function register(\Pimple\Container \$c)
    {
$joinedServiceDefinitions
    }
}
EOL;

        return $namespaceSource . $classSource;
    }