| 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 ConfigurationService $configurations |
| 11 |
* @property ConnectionTokenService $connectionTokens |
| 12 |
* @property LocationService $locations |
| 13 |
* @property ReaderService $readers |
| 14 |
*/ |
| 15 |
class TerminalServiceFactory extends \Stripe\Service\AbstractServiceFactory |
| 16 |
{ |
| 17 |
/** |
| 18 |
* @var array<string, string> |
| 19 |
*/ |
| 20 |
private static $classMap = [ |
| 21 |
'configurations' => ConfigurationService::class, |
| 22 |
'connectionTokens' => ConnectionTokenService::class, |
| 23 |
'locations' => LocationService::class, |
| 24 |
'readers' => ReaderService::class, |
| 25 |
]; |
| 26 |
|
| 27 |
protected function getServiceClass($name) |
| 28 |
{ |
| 29 |
return \array_key_exists($name, self::$classMap) ? self::$classMap[$name] : null; |
| 30 |
} |
| 31 |
} |
| 32 |
|