1 | <?php |
||
17 | class AggregateFormatter |
||
18 | { |
||
19 | /** |
||
20 | * @var NormalPriorityQueue |
||
21 | */ |
||
22 | protected $formatters; |
||
23 | |||
24 | public function __construct() |
||
28 | |||
29 | /** |
||
30 | * Add formatter |
||
31 | * |
||
32 | * @param FormatterInterface $formatter |
||
33 | * @param int $priority |
||
34 | * |
||
35 | * @return void |
||
36 | */ |
||
37 | public function addFormatter(FormatterInterface $formatter, $priority = 0) |
||
45 | |||
46 | /** |
||
47 | * @return FormatterInterface|null |
||
48 | */ |
||
49 | protected function getFormatter($target) |
||
57 | |||
58 | /** |
||
59 | * {@inheritdoc} |
||
60 | */ |
||
61 | public function canFormat($target) |
||
65 | |||
66 | /** |
||
67 | * {@inheritdoc} |
||
68 | */ |
||
69 | public function format($target) |
||
73 | } |