interface.jetpack-sync-codec.php 366 B

1234567891011121314
  1. <?php
  2. /**
  3. * Very simple interface for encoding and decoding input
  4. * This is used to provide compression and serialization to messages
  5. **/
  6. interface iJetpack_Sync_Codec {
  7. // we send this with the payload so we can select the appropriate decoder at the other end
  8. public function name();
  9. public function encode( $object );
  10. public function decode( $input );
  11. }