Implementing Custom Holiday Providers
developIf you are creating a custom holiday provider by extending the AbstractProvider class, note the following:
- Method Visibility: Many methods in the provider hierarchy are
protected. Do not rely on them beingpublicif you are extending the class. - Namespace Resolution: When using
ReflectionClassvia theanotherTime()method inAbstractProvider, the library usesgetName()instead ofgetShortName(). This ensures that custom holiday providers with full namespaces do not trigger aProviderNotFoundException.