| 1 | <?php |
||
| 16 | class ChannelManager extends Manager |
||
| 17 | { |
||
| 18 | /** @var array */ |
||
| 19 | private $channels = []; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Register channels. |
||
| 23 | * |
||
| 24 | * @param array $channels |
||
| 25 | */ |
||
| 26 | 2 | public function register(array $channels): void |
|
| 30 | |||
| 31 | /** |
||
| 32 | * Get all channels. |
||
| 33 | * |
||
| 34 | * @return array |
||
| 35 | */ |
||
| 36 | 1 | public function all(): array |
|
| 40 | |||
| 41 | /** |
||
| 42 | * Get channel by name. |
||
| 43 | * |
||
| 44 | * @param string $name |
||
| 45 | * |
||
| 46 | * @return Channel |
||
| 47 | * @throws ChannelNotFound |
||
| 48 | */ |
||
| 49 | 2 | public function get(string $name): Channel |
|
| 63 | |||
| 64 | /** |
||
| 65 | * Get the default driver name. |
||
| 66 | * |
||
| 67 | * @return string |
||
| 68 | */ |
||
| 69 | 1 | public function getDefaultDriver() |
|
| 73 | } |
||
| 74 |