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