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