Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4001782
Generator.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
680 B
Referenced Files
None
Subscribers
None
Generator.php
View Options
<?php
namespace
Eris
;
use
Eris\Generator\GeneratedValue
;
use
Eris\Generator\GeneratedValueSingle
;
/**
* Generic interface for a type <T>.
* @psalm-template T
*/
interface
Generator
{
/**
* @param int The generation size
* @param Random\RandomRange
* @return GeneratedValueSingle<T>
*/
public
function
__invoke
(
$size
,
Random\RandomRange
$rand
);
/**
* The conditions for terminating are either:
* - returning the same GeneratedValueSingle passed in
* - returning an empty GeneratedValueOptions
*
* @param GeneratedValue<T>
* @return GeneratedValue<T>
*/
public
function
shrink
(
GeneratedValue
$element
);
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Aug 14 2026, 07:01 (14 w, 4 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
57/2f/d1262170088b40000b5c34aa33fe
Default Alt Text
Generator.php (680 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment