Apps
7 months ago
Billing
7 months ago
BillingPortal
7 months ago
Checkout
7 months ago
Climate
7 months ago
Entitlements
7 months ago
FinancialConnections
7 months ago
Forwarding
7 months ago
Identity
7 months ago
Issuing
7 months ago
Radar
7 months ago
Reporting
7 months ago
Sigma
7 months ago
Tax
7 months ago
Terminal
7 months ago
TestHelpers
7 months ago
Treasury
7 months ago
V2
7 months ago
AbstractService.php
7 months ago
AbstractServiceFactory.php
7 months ago
AccountLinkService.php
7 months ago
AccountService.php
7 months ago
AccountSessionService.php
7 months ago
ApplePayDomainService.php
7 months ago
ApplicationFeeService.php
7 months ago
BalanceService.php
7 months ago
BalanceTransactionService.php
7 months ago
ChargeService.php
7 months ago
ConfirmationTokenService.php
7 months ago
CoreServiceFactory.php
7 months ago
CountrySpecService.php
7 months ago
CouponService.php
7 months ago
CreditNoteService.php
7 months ago
CustomerService.php
7 months ago
CustomerSessionService.php
7 months ago
DisputeService.php
7 months ago
EphemeralKeyService.php
7 months ago
EventService.php
7 months ago
ExchangeRateService.php
7 months ago
FileLinkService.php
7 months ago
FileService.php
7 months ago
InvoiceItemService.php
7 months ago
InvoicePaymentService.php
7 months ago
InvoiceRenderingTemplateService.php
7 months ago
InvoiceService.php
7 months ago
MandateService.php
7 months ago
OAuthService.php
7 months ago
PaymentIntentService.php
7 months ago
PaymentLinkService.php
7 months ago
PaymentMethodConfigurationService.php
7 months ago
PaymentMethodDomainService.php
7 months ago
PaymentMethodService.php
7 months ago
PayoutService.php
7 months ago
PlanService.php
7 months ago
PriceService.php
7 months ago
ProductService.php
7 months ago
PromotionCodeService.php
7 months ago
QuoteService.php
7 months ago
RefundService.php
7 months ago
ReviewService.php
7 months ago
ServiceNavigatorTrait.php
7 months ago
SetupAttemptService.php
7 months ago
SetupIntentService.php
7 months ago
ShippingRateService.php
7 months ago
SourceService.php
7 months ago
SubscriptionItemService.php
7 months ago
SubscriptionScheduleService.php
7 months ago
SubscriptionService.php
7 months ago
TaxCodeService.php
7 months ago
TaxIdService.php
7 months ago
TaxRateService.php
7 months ago
TokenService.php
7 months ago
TopupService.php
7 months ago
TransferService.php
7 months ago
WebhookEndpointService.php
7 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 |