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