private function encodeLayersInformation($layers, Encoder $encoder)
    {
        $layers = array_map(
            function ($layer) use ($encoder) {
                return $encoder->encodeReference($layer);
            },
            $layers
        );

        return '[' . implode(', ', $layers) . ']';
    }