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