| 1 | <?php |
||
| 9 | class Channel |
||
| 10 | { |
||
| 11 | private $name; |
||
| 12 | private $driver; |
||
| 13 | |||
| 14 | 1 | public function __construct(string $name, Driver $driver) |
|
| 15 | { |
||
| 16 | 1 | $this->name = $name; |
|
| 17 | 1 | $this->driver = $driver; |
|
| 18 | 1 | } |
|
| 19 | |||
| 20 | /** |
||
| 21 | * Name of the channel. |
||
| 22 | * |
||
| 23 | * @return string |
||
| 24 | */ |
||
| 25 | 1 | public function getName(): string |
|
| 29 | |||
| 30 | /** |
||
| 31 | * Get driver. |
||
| 32 | * |
||
| 33 | * @return Driver |
||
| 34 | */ |
||
| 35 | 1 | public function getDriver(): Driver |
|
| 39 | } |
||
| 40 |