Closed kouinkouin closed 8 years ago
I create an interface to permit to the user (of your lib) to type a variable 'Box\National' or 'Box\International'.
I mean, write :
if ($maybeBox instanceof Box\IBox) {...}
instead of :
if ($maybeBox instanceof Box\National || $maybeBox instanceof Box\International) {...}
I create an interface to permit to the user (of your lib) to type a variable 'Box\National' or 'Box\International'.