Files
Chamilo/vendor/stripe/stripe-php/lib/Service/AbstractServiceFactory.php
2025-04-10 12:24:57 +02:00

27 lines
626 B
PHP

<?php
namespace Stripe\Service;
/**
* Abstract base class for all service factories used to expose service
* instances through {@link \Stripe\StripeClient}.
*
* Service factories serve two purposes:
*
* 1. Expose properties for all services through the `__get()` magic method.
* 2. Lazily initialize each service instance the first time the property for
* a given service is used.
*/
abstract class AbstractServiceFactory
{
use ServiceNavigatorTrait;
/**
* @param \Stripe\StripeClientInterface $client
*/
public function __construct($client)
{
$this->client = $client;
}
}