| 1 | <?php |
||
| 18 | class AllInOne implements SocialNetworkPublisher |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * @var array |
||
| 22 | */ |
||
| 23 | private $publishers = []; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @param SocialNetworkPublisher ...$publishers List of instantiated SocialNetworkPublisher's |
||
| 27 | */ |
||
| 28 | public function __construct(SocialNetworkPublisher ...$publishers) |
||
| 34 | |||
| 35 | /** |
||
| 36 | * {@inheritdoc} |
||
| 37 | */ |
||
| 38 | public function canPublish(Message $message): bool |
||
| 42 | |||
| 43 | /** |
||
| 44 | * {@inheritdoc} |
||
| 45 | */ |
||
| 46 | public function publish(Message $message): bool |
||
| 61 | } |
||
| 62 |