2 namespace PayPal\Formatter;
4 * Interface for all classes that format objects to
5 * and from a on-wire representation
7 * For every new payload format, write a new formatter
8 * class that implements this interface
11 interface IPPFormatter {
15 * @param PPRequest $request The request to format
16 * @param array $options Any formatter specific options
19 public function toString($request, $options=array());
21 public function toObject($string, $options=array());