Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F1432441
ArrayEntry.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
695 B
Referenced Files
None
Subscribers
None
ArrayEntry.php
View Options
<?php
declare
(
strict_types
=
1
);
namespace
VarRepresentation\Node
;
use
VarRepresentation\Node
;
/**
* Represents a 'key => value' entry
*/
class
ArrayEntry
extends
Node
{
/** @var Node the key */
public
$key
;
/** @var Node the value */
public
$value
;
public
function
__construct
(
Node
$key
,
Node
$value
)
{
$this
->
key
=
$key
;
$this
->
value
=
$value
;
}
public
function
__toString
():
string
{
return
$this
->
key
->
__toString
()
.
' => '
.
$this
->
value
->
__toString
();
}
public
function
toIndentedString
(
int
$depth
):
string
{
return
$this
->
key
->
__toString
()
.
' => '
.
$this
->
value
->
toIndentedString
(
$depth
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, May 16, 21:45 (1 d, 6 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
f1/26/36c93994bd5df3504994de9bcb91
Default Alt Text
ArrayEntry.php (695 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment