IPPFormatter.php 492 B

123456789101112131415161718192021
  1. <?php
  2. /**
  3. * Interface for all classes that format objects to
  4. * and from a on-wire representation
  5. *
  6. * For every new payload format, write a new formatter
  7. * class that implements this interface
  8. *
  9. */
  10. interface IPPFormatter {
  11. /**
  12. *
  13. * @param PPRequest $request The request to format
  14. * @param array $options Any formatter specific options
  15. * to be passed in
  16. */
  17. public function toString($request, $options=array());
  18. public function toObject($string, $options=array());
  19. }