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

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

        return '[' . implode(', ', $layers) . ']';
    }
private function encodeLayersInformation ( $ layers , Encoder $ encoder ) { $ layers = array_map ( function ( $ layer ) use ( $ encoder ) { return $ encoder -> encodeReference ( $ layer ) ; } , $ layers ) ; return '[' . implode ( ', ' , $ layers ) . ']' ; }
Get layer information correctly encoded.

@param Layer[] $layers  The layers.
@param Encoder $encoder The encoder.

@return array
Get layer information correctly encoded .