EntitlementsServiceFactory.php 702 B

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