Page MenuHomeWickedGov Phorge

PlainNumericSerialMapping.php
No OneTemporary

Size
449 B
Referenced Files
None
Subscribers
None

PlainNumericSerialMapping.php

<?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

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)

Event Timeline