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