Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4148458
ArrayKey.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
902 B
Referenced Files
None
Subscribers
None
ArrayKey.php
View Options
<?php
declare
(
strict_types
=
1
);
/**
* This file is part of phpDocumentor.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @link http://phpdoc.org
*/
namespace
phpDocumentor\Reflection\Types
;
use
phpDocumentor\Reflection\PseudoType
;
use
phpDocumentor\Reflection\Type
;
/**
* Value Object representing a array-key Type.
*
* A array-key Type is the supertype (but not a union) of int and string.
*
* @psalm-immutable
*/
final
class
ArrayKey
extends
AggregatedType
implements
PseudoType
{
public
function
__construct
()
{
parent
::
__construct
([
new
String_
(),
new
Integer
()],
'|'
);
}
public
function
underlyingType
():
Type
{
return
new
Compound
([
new
String_
(),
new
Integer
()]);
}
public
function
__toString
():
string
{
return
'array-key'
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Aug 19 2026, 18:48 (6 w, 2 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
31/c3/7325f636184555f5faa76c13c1d2
Default Alt Text
ArrayKey.php (902 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment