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

@param string     $type    The group type.
@param LayerGroup $group   The group instance.
@param Encoder    $encoder The encoder.

@return string
Encode the group .