public function __construct($countryCode, Factory $factory = null) { if (null === $factory) { $factory = new Factory(); } $this->validatable = $factory->bank($countryCode); }