| 1 | <?php |
||
| 10 | abstract class MultiJsonStream extends CallbackStream |
||
| 11 | { |
||
| 12 | /** @var SerializerInterface Serializer to decode incoming json object */ |
||
| 13 | private $serializer; |
||
| 14 | |||
| 15 | 8 | public function __construct(StreamInterface $stream, SerializerInterface $serializer) |
|
| 21 | |||
| 22 | /** |
||
| 23 | * {@inheritdoc} |
||
| 24 | */ |
||
| 25 | 8 | protected function readFrame() |
|
| 69 | |||
| 70 | /** |
||
| 71 | * Get the decode class to pass to serializer |
||
| 72 | * |
||
| 73 | * @return string |
||
| 74 | */ |
||
| 75 | abstract protected function getDecodeClass(); |
||
| 76 | } |
||
| 77 |