Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5948924
Subscription.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
Subscription.php
View Options
<?php
namespace
MediaWiki\Extension\Notifications\Push
;
use
Wikimedia\Timestamp\ConvertibleTimestamp
;
class
Subscription
{
/**
* Construct a subscription from a DB result row.
* @param \stdClass $row echo_push_subscription row from IResultWrapper::fetchRow
* @return Subscription
*/
public
static
function
newFromRow
(
object
$row
)
{
return
new
self
(
$row
->
epp_name
,
$row
->
eps_token
,
$row
->
ept_text
,
new
ConvertibleTimestamp
(
$row
->
eps_updated
)
);
}
public
function
__construct
(
private
readonly
string
$provider
,
private
readonly
string
$token
,
private
readonly
?
string
$topic
,
private
readonly
ConvertibleTimestamp
$updated
,
)
{
}
/** @return string provider */
public
function
getProvider
():
string
{
return
$this
->
provider
;
}
/** @return string token */
public
function
getToken
():
string
{
return
$this
->
token
;
}
/** @return string|null topic */
public
function
getTopic
():
?
string
{
return
$this
->
topic
;
}
/** @return ConvertibleTimestamp last updated timestamp */
public
function
getUpdated
():
ConvertibleTimestamp
{
return
$this
->
updated
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Oct 2 2026, 22:35 (5 w, 4 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
37/e7/b719248e1972df3a9927164d07c1
Default Alt Text
Subscription.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment