Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7402549
Hasher.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
458 B
Referenced Files
None
Subscribers
None
Hasher.php
View Options
<?php
declare
(
strict_types
=
1
);
namespace
Phan\Library
;
/**
* An interface to map strings to integers representing groups.
* getGroup() is called exactly once on each string to be hashed.
*/
interface
Hasher
{
/**
* Returns an integer between 0 and the number of groups - 1
*/
public
function
getGroup
(
string
$key
):
int
;
/**
* @return void
* If there is any state, clear it.
*/
public
function
reset
():
void
;
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Nov 21, 18:07 (18 h, 21 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
8e/8e/1008d897b296301e20efe505a382
Default Alt Text
Hasher.php (458 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment