File tree 1 file changed +6
-4
lines changed
src/Symfony/Component/ValueExporter/Exporter 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -39,9 +39,9 @@ abstract class AbstractValueExporter implements ValueExporterInterface
39
39
protected $ formatterInterface = FormatterInterface::class;
40
40
41
41
/**
42
- * An array of priorities by formatter class .
42
+ * An array indexed by formatter FQCN with a corresponding priority as value .
43
43
*
44
- * @var array []
44
+ * @var int []
45
45
*/
46
46
private $ formatters = array ();
47
47
@@ -53,16 +53,18 @@ abstract class AbstractValueExporter implements ValueExporterInterface
53
53
private $ sortedFormatters ;
54
54
55
55
/**
56
- * An array of cached formatters instances by class .
56
+ * An array of cached formatters instances by their FQCN .
57
57
*
58
58
* @var FormatterInterface[]
59
59
*/
60
60
private $ cachedFormatters = array ();
61
61
62
62
/**
63
- * Takes {@link FormatterInterface} as arguments.
63
+ * Takes {@link FormatterInterface} FQCN as arguments.
64
64
*
65
65
* They will be called in the given order.
66
+ * Alternatively, instead of a class, you can pass an array with
67
+ * a class and its priority {@see self::addFormatters}.
66
68
*/
67
69
final public function __construct ()
68
70
{
You can’t perform that action at this time.
0 commit comments