public function __construct(CountryRepositoryInterface $countryRepository = null) { $this->countryRepository = $countryRepository ?: new CountryRepository(); }