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