* @param AvroIO $io * @param AvroSchema $schema * @param string $codec * @returns AvroDataIOWriter */
($io, $schema, $codec = self::NULL_CODEC)
| 173 | * @returns AvroDataIOWriter |
| 174 | */ |
| 175 | protected static function openWriter($io, $schema, $codec = self::NULL_CODEC) |
| 176 | { |
| 177 | $writer = new AvroIODatumWriter($schema); |
| 178 | return new AvroDataIOWriter($io, $writer, $schema, $codec); |
| 179 | } |
| 180 | |
| 181 | /** |
| 182 | * @param AvroIO $io |