1 | <?php |
||
22 | final class CompositeOutputChannelAdapter implements AdapterInterface |
||
23 | { |
||
24 | /** |
||
25 | * @var array |
||
26 | */ |
||
27 | private $adapters = []; |
||
28 | |||
29 | /** |
||
30 | * {@inheritdoc} |
||
31 | */ |
||
32 | public function create(OutputChannelInterface $outputChannel, ArticleInterface $article): void |
||
37 | |||
38 | /** |
||
39 | * {@inheritdoc} |
||
40 | */ |
||
41 | public function update(OutputChannelInterface $outputChannel, ArticleInterface $article): void |
||
46 | |||
47 | /** |
||
48 | * {@inheritdoc} |
||
49 | */ |
||
50 | public function publish(OutputChannelInterface $outputChannel, ArticleInterface $article): void |
||
55 | |||
56 | /** |
||
57 | * {@inheritdoc} |
||
58 | */ |
||
59 | public function unpublish(OutputChannelInterface $outputChannel, ArticleInterface $article): void |
||
64 | |||
65 | /** |
||
66 | * {@inheritdoc} |
||
67 | */ |
||
68 | public function supports(OutputChannelInterface $outputChannel): bool |
||
78 | |||
79 | /** |
||
80 | * @param AdapterInterface $provider |
||
81 | */ |
||
82 | public function addAdapter(AdapterInterface $provider): void |
||
86 | |||
87 | /** |
||
88 | * @param OutputChannelInterface $outputChannel |
||
89 | * |
||
90 | * @throws \InvalidArgumentException |
||
91 | * |
||
92 | * @return AdapterInterface |
||
93 | */ |
||
94 | private function getSupportedAdapter(OutputChannelInterface $outputChannel): AdapterInterface |
||
104 | } |
||
105 |