| 1 | <?php |
||
| 24 | class SerializationContextCollectorChain implements SerializationContextCollectorInterface |
||
| 25 | { |
||
| 26 | /** |
||
| 27 | * @var \SplQueue|SerializationContextCollectorInterface[] |
||
| 28 | */ |
||
| 29 | private $collectors; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Constructor. |
||
| 33 | */ |
||
| 34 | 1 | public function __construct() |
|
| 38 | |||
| 39 | /** |
||
| 40 | * Add the collector to chain |
||
| 41 | * |
||
| 42 | * @param SerializationContextCollectorInterface $collector |
||
| 43 | */ |
||
| 44 | 1 | public function add(SerializationContextCollectorInterface $collector): void |
|
| 48 | |||
| 49 | /** |
||
| 50 | * {@inheritdoc} |
||
| 51 | */ |
||
| 52 | 1 | public function collect(): ResourceSerializationContext |
|
| 63 | } |
||
| 64 |