Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F1659608
SingletonApiResource.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
717 B
Referenced Files
None
Subscribers
None
SingletonApiResource.php
View Options
<?php
abstract
class
Stripe_SingletonApiResource
extends
Stripe_ApiResource
{
protected
static
function
_scopedSingletonRetrieve
(
$class
,
$apiKey
=
null
)
{
$instance
=
new
$class
(
null
,
$apiKey
);
$instance
->
refresh
();
return
$instance
;
}
/**
* @param Stripe_SingletonApiResource $class
* @return string The endpoint associated with this singleton class.
*/
public
static
function
classUrl
(
$class
)
{
$base
=
self
::
className
(
$class
);
return
"/v1/${base}"
;
}
/**
* @return string The endpoint associated with this singleton API resource.
*/
public
function
instanceUrl
()
{
$class
=
get_class
(
$this
);
$base
=
self
::
classUrl
(
$class
);
return
"$base"
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Thu, Jul 17, 2:41 AM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
366640
Default Alt Text
SingletonApiResource.php (717 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment