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