FinancialConnectionsServiceFactory.php 785 B

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