private function doVectorEncode($type, Vector $vector, Encoder $builder)
    {
        return sprintf(
            '%s = L.%s(%s, %s);',
            $builder->encodeReference($vector),
            $type,
            $builder->encodeArray($vector->getLatLngs()),
            $builder->encodeValue($vector->getOptions())
        );
    }
private function doVectorEncode($type, Vector $vector, Encoder $builder)
    {
        return sprintf(
            '%s = L.%s(%s, %s);',
            $builder->encodeReference($vector),
            $type,
            $builder->encodeArray($vector->getLatLngs()),
            $builder->encodeValue($vector->getOptions())
        );
    }
private function doVectorEncode ( $ type , Vector $ vector , Encoder $ builder ) { return sprintf ( '%s = L.%s(%s, %s);' , $ builder -> encodeReference ( $ vector ) , $ type , $ builder -> encodeArray ( $ vector -> getLatLngs ( ) ) , $ builder -> encodeValue ( $ vector -> getOptions ( ) ) ) ; }
Encode a vector.

@param string  $type    The type name.
@param Vector  $vector  The vector.
@param Encoder $builder The builder.

@return string
Encode a vector .