2 namespace PayPal\Formatter;
3 class FormatterFactory {
4 public static function factory($bindingType) {
5 switch ($bindingType) {
7 return new PPNVPFormatter();
10 return new PPSOAPFormatter();
13 throw new InvalidArgumentException("Invalid value for bindingType. You passed $bindingType");