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