• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

stripe / stripe-php / 11076452927

27 Sep 2024 07:17PM UTC coverage: 62.403% (-0.8%) from 63.204%
11076452927

push

github

web-flow
Adding support for the new Usage Billing APIs (#1750)

180 of 373 new or added lines in 21 files covered. (48.26%)

3 existing lines in 3 files now uncovered.

3552 of 5692 relevant lines covered (62.4%)

2.45 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/lib/Service/V2/V2ServiceFactory.php
1
<?php
2

3
// File generated from our OpenAPI spec
4

5
namespace Stripe\Service\V2;
6

7
/**
8
 * Service factory class for API resources in the V2 namespace.
9
 *
10
 * @property Billing\BillingServiceFactory $billing
11
 * @property Core\CoreServiceFactory $core
12
 */
13
class V2ServiceFactory extends \Stripe\Service\AbstractServiceFactory
14
{
15
    /**
16
     * @var array<string, string>
17
     */
18
    private static $classMap = [
19
        'billing' => Billing\BillingServiceFactory::class,
20
        'core' => Core\CoreServiceFactory::class,
21
    ];
22

NEW
23
    protected function getServiceClass($name)
×
24
    {
NEW
25
        return \array_key_exists($name, self::$classMap) ? self::$classMap[$name] : null;
×
26
    }
27
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc