PPPStripeSingletonApiResource

Class SingletonApiResource.

Defined (1)

The class is defined in the following location(s).

/includes/api/stripe-php/lib/SingletonApiResource.php  
  1. abstract class SingletonApiResource extends ApiResource 
  2. protected static function _singletonRetrieve($options = null) 
  3. $opts = Util\RequestOptions::parse($options); 
  4. $instance = new static(null, $opts); 
  5. $instance->refresh(); 
  6. return $instance; 
  7.  
  8. /** 
  9. * @return string The endpoint associated with this singleton class. 
  10. */ 
  11. public static function classUrl() 
  12. $base = static::className(); 
  13. return "/v1/${base}"; 
  14.  
  15. /** 
  16. * @return string The endpoint associated with this singleton API resource. 
  17. */ 
  18. public function instanceUrl() 
  19. return static::classUrl();