| 1 | <?php |
||
| 8 | class Encoder implements EncoderInterface |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var ParserInterface |
||
| 12 | */ |
||
| 13 | protected $parser; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @var ProtocolInterface |
||
| 17 | */ |
||
| 18 | protected $protocol; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @param ParserInterface $parser |
||
| 22 | */ |
||
| 23 | 7 | public function __construct(ParserInterface $parser) |
|
| 28 | |||
| 29 | /** |
||
| 30 | * |
||
| 31 | */ |
||
| 32 | 5 | public function __destruct() |
|
| 37 | |||
| 38 | /** |
||
| 39 | * @override |
||
| 40 | * @inheritDoc |
||
| 41 | */ |
||
| 42 | 3 | public function with(ProtocolInterface $protocol) |
|
| 48 | |||
| 49 | /** |
||
| 50 | * @override |
||
| 51 | * @inheritDoc |
||
| 52 | */ |
||
| 53 | 1 | public function encode() |
|
| 57 | |||
| 58 | /** |
||
| 59 | * @override |
||
| 60 | * @inheritDoc |
||
| 61 | */ |
||
| 62 | 1 | public function decode($str) |
|
| 66 | } |
||
| 67 |