Total Complexity | 4 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
24 | class SerializationContextCollector implements SerializationContextCollectorInterface |
||
25 | { |
||
26 | /** |
||
27 | * @var \SplQueue<SerializationContextCollectorInterface> |
||
28 | */ |
||
29 | private \SplQueue $collectors; |
||
30 | |||
31 | /** |
||
32 | * Constructor. |
||
33 | */ |
||
34 | public function __construct() |
||
37 | } |
||
38 | |||
39 | /** |
||
40 | * Add the collector to chain |
||
41 | * |
||
42 | * @param SerializationContextCollectorInterface $collector |
||
43 | */ |
||
44 | public function add(SerializationContextCollectorInterface $collector): void |
||
45 | { |
||
46 | $this->collectors->enqueue($collector); |
||
47 | } |
||
48 | |||
49 | /** |
||
50 | * {@inheritdoc} |
||
51 | */ |
||
52 | public function collect(): ResourceSerializationContext |
||
62 | } |
||
63 | } |
||
64 |