10000 [ValueExporter] fixed some doc blocks in AbstractValueExporter · symfony/symfony@826e8fb · GitHub
[go: up one dir, main page]

Skip to content

Commit 826e8fb

Browse files
committed
[ValueExporter] fixed some doc blocks in AbstractValueExporter
1 parent ab119f0 commit 826e8fb

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/Symfony/Component/ValueExporter/Exporter/AbstractValueExporter.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ abstract class AbstractValueExporter implements ValueExporterInterface
3939
protected $formatterInterface = FormatterInterface::class;
4040

4141
/**
42-
* An array of priorities by formatter class.
42+
* An array indexed by formatter FQCN with a corresponding priority as value.
4343
*
44-
* @var array[]
44+
* @var int[]
4545
*/
4646
private $formatters = array();
4747

@@ -53,16 +53,18 @@ abstract class AbstractValueExporter implements ValueExporterInterface
5353
private $sortedFormatters;
5454

5555
/**
56-
* An array of cached formatters instances by class.
56+
* An array of cached formatters instances by their FQCN.
5757
*
5858
* @var FormatterInterface[]
5959
*/
6060
private $cachedFormatters = array();
6161

6262
/**
63-
* Takes {@link FormatterInterface} as arguments.
63+
* Takes {@link FormatterInterface} FQCN as arguments.
6464
*
6565
* 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}.
6668
*/
6769
final public function __construct()
6870
{

0 commit comments

Comments
 (0)
0