TerminalServiceFactory.php 872 B

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