Page MenuHomeWickedGov Phorge

Hasher.php
No OneTemporary

Size
458 B
Referenced Files
None
Subscribers
None

Hasher.php

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

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)

Event Timeline