Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7418029
Tuple1.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
822 B
Referenced Files
None
Subscribers
None
Tuple1.php
View Options
<?php
declare
(
strict_types
=
1
);
namespace
Phan\Library
;
/**
* A tuple of 1 element.
*
* @template T0
* The type of element zero
* phpcs:disable PSR2.Classes.PropertyDeclaration.Underscore
*/
class
Tuple1
extends
Tuple
{
/** @var int */
public
const
ARITY
=
1
;
/** @var T0 element 0 of this tuple (0-based index) */
public
$_0
;
/**
* @param T0 $_0
* The 0th element
*/
public
function
__construct
(
$_0
)
{
$this
->
_0
=
$_0
;
}
/**
* @return int
* The arity of this tuple
*/
public
function
arity
():
int
{
return
static
::
ARITY
;
}
/**
* @return array{0:T0}
* An array of all elements in this tuple.
*/
public
function
toArray
():
array
{
return
[
$this
->
_0
,
];
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Nov 22, 03:42 (1 d, 20 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
ec/10/f3f2ed013cf4f21b62532b4f6a9f
Default Alt Text
Tuple1.php (822 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment