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