Apps
6 months ago
Billing
6 months ago
BillingPortal
6 months ago
Checkout
6 months ago
Climate
6 months ago
Entitlements
6 months ago
FinancialConnections
6 months ago
Forwarding
6 months ago
Identity
6 months ago
Issuing
6 months ago
Radar
6 months ago
Reporting
6 months ago
Sigma
6 months ago
Tax
6 months ago
Terminal
6 months ago
TestHelpers
6 months ago
Treasury
6 months ago
V2
6 months ago
AbstractService.php
6 months ago
AbstractServiceFactory.php
6 months ago
AccountLinkService.php
6 months ago
AccountService.php
6 months ago
AccountSessionService.php
6 months ago
ApplePayDomainService.php
6 months ago
ApplicationFeeService.php
6 months ago
BalanceService.php
6 months ago
BalanceTransactionService.php
6 months ago
ChargeService.php
6 months ago
ConfirmationTokenService.php
6 months ago
CoreServiceFactory.php
6 months ago
CountrySpecService.php
6 months ago
CouponService.php
6 months ago
CreditNoteService.php
6 months ago
CustomerService.php
6 months ago
CustomerSessionService.php
6 months ago
DisputeService.php
6 months ago
EphemeralKeyService.php
6 months ago
EventService.php
6 months ago
ExchangeRateService.php
6 months ago
FileLinkService.php
6 months ago
FileService.php
6 months ago
InvoiceItemService.php
6 months ago
InvoicePaymentService.php
6 months ago
InvoiceRenderingTemplateService.php
6 months ago
InvoiceService.php
6 months ago
MandateService.php
6 months ago
OAuthService.php
6 months ago
PaymentIntentService.php
6 months ago
PaymentLinkService.php
6 months ago
PaymentMethodConfigurationService.php
6 months ago
PaymentMethodDomainService.php
6 months ago
PaymentMethodService.php
6 months ago
PayoutService.php
6 months ago
PlanService.php
6 months ago
PriceService.php
6 months ago
ProductService.php
6 months ago
PromotionCodeService.php
6 months ago
QuoteService.php
6 months ago
RefundService.php
6 months ago
ReviewService.php
6 months ago
ServiceNavigatorTrait.php
6 months ago
SetupAttemptService.php
6 months ago
SetupIntentService.php
6 months ago
ShippingRateService.php
6 months ago
SourceService.php
6 months ago
SubscriptionItemService.php
6 months ago
SubscriptionScheduleService.php
6 months ago
SubscriptionService.php
6 months ago
TaxCodeService.php
6 months ago
TaxIdService.php
6 months ago
TaxRateService.php
6 months ago
TokenService.php
6 months ago
TopupService.php
6 months ago
TransferService.php
6 months ago
WebhookEndpointService.php
6 months ago
AbstractServiceFactory.php
27 lines
| 1 | <?php |
| 2 | |
| 3 | namespace AmeliaVendor\Stripe\Service; |
| 4 | |
| 5 | /** |
| 6 | * Abstract base class for all service factories used to expose service |
| 7 | * instances through {@link \Stripe\StripeClient}. |
| 8 | * |
| 9 | * Service factories serve two purposes: |
| 10 | * |
| 11 | * 1. Expose properties for all services through the `__get()` magic method. |
| 12 | * 2. Lazily initialize each service instance the first time the property for |
| 13 | * a given service is used. |
| 14 | */ |
| 15 | abstract class AbstractServiceFactory |
| 16 | { |
| 17 | use ServiceNavigatorTrait; |
| 18 | |
| 19 | /** |
| 20 | * @param \AmeliaVendor\Stripe\StripeClientInterface $client |
| 21 | */ |
| 22 | public function __construct($client) |
| 23 | { |
| 24 | $this->client = $client; |
| 25 | } |
| 26 | } |
| 27 |