tijsverkoyen / bpost

Other
28 stars 47 forks source link

Add IBox interface, implemented by Box/National and Box/International #13

Closed kouinkouin closed 8 years ago

kouinkouin commented 9 years ago

I create an interface to permit to the user (of your lib) to type a variable 'Box\National' or 'Box\International'.

kouinkouin commented 9 years ago

I mean, write :

if ($maybeBox instanceof Box\IBox) {...}

instead of :

if ($maybeBox instanceof Box\National || $maybeBox instanceof Box\International) {...}