sakaimtta61124 / amazon-mws-php-fork

Automatically exported from code.google.com/p/amazon-mws-php-fork
Apache License 2.0
0 stars 0 forks source link

Enhancement: abstract common request arguments #2

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
(all?) request share 'marketplace' and 'merchant-id' arguments but logic for 
those is available in each class file even thought they have a single parent 
class.

For groups of request there might be even more common properties.

Original issue reported on code.google.com by m...@phpkuh.de on 24 Aug 2011 at 7:22

GoogleCodeExporter commented 9 years ago
Conversion to array is shared by all request objects as well.

It is straight forward to reduce Client who holds this logic and put it to the 
abstract base class to be overwritten only on demand, i.e. for special keys.

Original comment by m...@phpkuh.de on 25 Aug 2011 at 5:11