Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5986563
ArrayShape.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
ArrayShape.php
View Options
<?php
/*
* 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
*
*/
declare
(
strict_types
=
1
);
namespace
phpDocumentor\Reflection\PseudoTypes
;
use
phpDocumentor\Reflection\PseudoType
;
use
phpDocumentor\Reflection\Type
;
use
phpDocumentor\Reflection\Types\Array_
;
use
phpDocumentor\Reflection\Types\ArrayKey
;
use
phpDocumentor\Reflection\Types\Mixed_
;
use
function
implode
;
/** @psalm-immutable */
class
ArrayShape
implements
PseudoType
{
/** @var ArrayShapeItem[] */
private
$items
;
public
function
__construct
(
ArrayShapeItem
...
$items
)
{
$this
->
items
=
$items
;
}
/**
* @return ArrayShapeItem[]
*/
public
function
getItems
():
array
{
return
$this
->
items
;
}
public
function
underlyingType
():
Type
{
return
new
Array_
(
new
Mixed_
(),
new
ArrayKey
());
}
public
function
__toString
():
string
{
return
'array{'
.
implode
(
', '
,
$this
->
items
)
.
'}'
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Oct 4, 00:08 (2 w, 4 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
02/e7/c1468b3350411df692d80e7c23c2
Default Alt Text
ArrayShape.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment