private function doGroupEncode($type, LayerGroup $group, Encoder $encoder)
    {
        return sprintf(
            '%s = L.%s(%s);',
            $encoder->encodeReference($group),
            $type,
            $this->encodeLayersInformation($group->getLayers(), $encoder)
        );
    }