1 | <?php |
||
13 | class Channel implements ChannelInterface |
||
14 | { |
||
15 | private $name; |
||
16 | |||
17 | /** |
||
18 | * Channel constructor. |
||
19 | * |
||
20 | * @param string $name |
||
21 | */ |
||
22 | 17 | public function __construct($name) |
|
26 | |||
27 | /** |
||
28 | * @param string $name |
||
29 | * |
||
30 | * @return self |
||
31 | */ |
||
32 | 17 | private function setName($name) |
|
48 | |||
49 | /** |
||
50 | * {@inheritdoc} |
||
51 | */ |
||
52 | 5 | public function getChannel() |
|
56 | |||
57 | /** |
||
58 | * {@inheritdoc} |
||
59 | */ |
||
60 | 4 | public function __toString() |
|
64 | } |
||
65 |