Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F1430461
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
Sat, May 16, 18:46 (5 h, 50 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
6b/ac/87f45388eeb77bc29b7812c28847
Default Alt Text
Generator.php (680 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment