protected function getReferences(array $values, Encoder $encoder)
    {
        return array_map(
            function ($value) use ($encoder) {
                return $encoder->encodeReference($value);
            },
            $values
        );
    }
protected function getReferences(array $values, Encoder $encoder)
    {
        return array_map(
            function ($value) use ($encoder) {
                return $encoder->encodeReference($value);
            },
            $values
        );
    }
protected function getReferences ( array $ values , Encoder $ encoder ) { return array_map ( function ( $ value ) use ( $ encoder ) { return $ encoder -> encodeReference ( $ value ) ; } , $ values ) ; }
Get references of given values.

@param array   $values  Set of values.
@param Encoder $encoder The encoder.

@return array
Get references of given values .