1 | <?php |
||
24 | final class ChannelCollector extends DataCollector |
||
25 | { |
||
26 | /** |
||
27 | * @var ChannelContextInterface |
||
28 | */ |
||
29 | private $channelContext; |
||
30 | |||
31 | /** |
||
32 | * @param ChannelRepositoryInterface $channelRepository |
||
33 | * @param ChannelContextInterface $channelContext |
||
34 | * @param bool $channelChangeSupport |
||
35 | */ |
||
36 | public function __construct( |
||
49 | |||
50 | /** |
||
51 | * @return ChannelInterface|null |
||
52 | */ |
||
53 | public function getChannel(): ?ChannelInterface |
||
57 | |||
58 | /** |
||
59 | * @return iterable|ChannelInterface[] |
||
60 | */ |
||
61 | public function getChannels(): iterable |
||
65 | |||
66 | /** |
||
67 | * @return bool |
||
68 | */ |
||
69 | public function isChannelChangeSupported(): bool |
||
73 | |||
74 | /** |
||
75 | * {@inheritdoc} |
||
76 | */ |
||
77 | public function collect(Request $request, Response $response, \Exception $exception = null): void |
||
84 | |||
85 | /** |
||
86 | * {@inheritdoc} |
||
87 | */ |
||
88 | public function reset(): void |
||
92 | |||
93 | /** |
||
94 | * {@inheritdoc} |
||
95 | */ |
||
96 | public function getName(): string |
||
100 | } |
||
101 |