| 1 | <?php namespace Arcanedev\Stripe; |
||
| 9 | class SingletonResource extends StripeResource |
||
| 10 | { |
||
| 11 | /* ------------------------------------------------------------------------------------------------ |
||
| 12 | | Main Functions |
||
| 13 | | ------------------------------------------------------------------------------------------------ |
||
| 14 | */ |
||
| 15 | /** |
||
| 16 | * Retrieve a singleton resource |
||
| 17 | * |
||
| 18 | * @param string $class |
||
| 19 | * @param array|string|null $apiKey |
||
| 20 | * |
||
| 21 | * @return SingletonResource |
||
| 22 | */ |
||
| 23 | 4 | protected static function scopedSingletonRetrieve($class, $apiKey = null) |
|
| 31 | |||
| 32 | /** |
||
| 33 | * Get resource URL. |
||
| 34 | * |
||
| 35 | * @param string $class |
||
| 36 | * |
||
| 37 | * @return string - The endpoint associated with this singleton class. |
||
| 38 | */ |
||
| 39 | 4 | public static function classUrl($class = '') |
|
| 43 | |||
| 44 | /** |
||
| 45 | * The endpoint associated with this singleton API resource. |
||
| 46 | * |
||
| 47 | * @param string $class |
||
| 48 | * |
||
| 49 | * @return string |
||
| 50 | */ |
||
| 51 | 4 | public function instanceUrl($class = '') |
|
| 55 | } |
||
| 56 |