ClimateServiceFactory.php 726 B

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