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