| 1 | <?php |
||
| 11 | class Feed implements FeedInterface |
||
| 12 | { |
||
| 13 | const ENCODING_UTF_8 = 'UTF-8'; |
||
| 14 | const ENCODING_WINDOWS_1251 = 'windows-1251'; |
||
| 15 | const ENCODING_KOI8_R = 'KOI8-R'; |
||
| 16 | |||
| 17 | /** @var ChannelInterface[] */ |
||
| 18 | protected $channels = []; |
||
| 19 | |||
| 20 | private $encoding; |
||
| 21 | |||
| 22 | 49 | public function __construct($encoding = self::ENCODING_UTF_8) |
|
| 26 | |||
| 27 | 21 | public function addChannel(ChannelInterface $channel) |
|
| 32 | |||
| 33 | 21 | public function render() |
|
| 50 | |||
| 51 | 14 | public function __toString() |
|
| 55 | } |
||
| 56 |