Exemple #1
0
 /**
  * Serialize the current object data
  *
  * @param CodecInterface|null $codec
  * @return string
  */
 public function serialize(CodecInterface $codec = null)
 {
     $codec = Protobuf::getCodec($codec);
     return $codec->encode($this);
 }