Page MenuHomeWickedGov Phorge

ArrayEntry.php
No OneTemporary

Size
695 B
Referenced Files
None
Subscribers
None

ArrayEntry.php

<?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

Mime Type
text/x-php
Expires
Sat, May 16, 21:45 (1 d, 5 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
f1/26/36c93994bd5df3504994de9bcb91
Default Alt Text
ArrayEntry.php (695 B)

Event Timeline