9c26f4616893a6552837e91f1dd6ac14341cc771
[WP-Plugins/glm-member-db-registrations.git] /
1 <?php
2 namespace PayPal\Formatter;
3 class FormatterFactory {
4         public static function factory($bindingType) {
5                 switch ($bindingType) {
6                         case 'NV':
7                                 return new PPNVPFormatter();
8                                 break;
9                         case 'SOAP':
10                                 return new PPSOAPFormatter();
11                                 break;
12                         default:
13                                 throw new InvalidArgumentException("Invalid value for bindingType. You passed $bindingType");   
14                 }
15         }
16 }