TaxServiceFactory.php 855 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. // File generated from our OpenAPI spec
  3. namespace Stripe\Service\Tax;
  4. /**
  5. * Service factory class for API resources in the Tax namespace.
  6. *
  7. * @property CalculationService $calculations
  8. * @property RegistrationService $registrations
  9. * @property SettingsService $settings
  10. * @property TransactionService $transactions
  11. */
  12. class TaxServiceFactory extends \Stripe\Service\AbstractServiceFactory
  13. {
  14. /**
  15. * @var array<string, string>
  16. */
  17. private static $classMap = [
  18. 'calculations' => CalculationService::class,
  19. 'registrations' => RegistrationService::class,
  20. 'settings' => SettingsService::class,
  21. 'transactions' => TransactionService::class,
  22. ];
  23. protected function getServiceClass($name)
  24. {
  25. return \array_key_exists($name, self::$classMap) ? self::$classMap[$name] : null;
  26. }
  27. }