/** * Registers the phone number provider for the given class * * @param string $className * @param PhoneProviderInterface $provider */ public function addPhoneProvider($className, PhoneProviderInterface $provider) { if ($provider instanceof RootPhoneProviderAwareInterface) { $provider->setRootProvider($this); } $this->phoneProviders[$className][] = $provider; }