1 | <?php |
||
11 | final class Transformer implements MessageToArrayInterface |
||
12 | { |
||
13 | /** |
||
14 | * @var TransformerInterface[] |
||
15 | */ |
||
16 | private $transformers; |
||
17 | |||
18 | 4 | public function __construct(iterable $transformers) |
|
22 | |||
23 | /** |
||
24 | * @throws TransformerNotFoundException |
||
25 | * @throws ConvertToArrayFailedException |
||
26 | */ |
||
27 | 4 | public function toArray($message): array |
|
54 | } |
||
55 |