Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F6066493
PlainNumericSerialMapping.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
449 B
Referenced Files
None
Subscribers
None
PlainNumericSerialMapping.php
View Options
<?php
namespace
MediaWiki\User\TempUser
;
/**
* Simple serial mapping for ASCII decimal numbers
*
* @since 1.39
*/
class
PlainNumericSerialMapping
implements
SerialMapping
{
/** @var int */
private
$offset
;
/**
* @param array $config
*/
public
function
__construct
(
$config
)
{
$this
->
offset
=
$config
[
'offset'
]
??
0
;
}
public
function
getSerialIdForIndex
(
int
$index
):
string
{
return
(
string
)(
$index
+
$this
->
offset
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Oct 5 2026, 04:48 (6 w, 10 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
5b/95/aaae02d5d0d78e03c8a1f22d0c80
Default Alt Text
PlainNumericSerialMapping.php (449 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment