Overview

Namespaces

  • Pharborist
    • Constants
    • ControlStructures
    • Exceptions
    • Functions
    • Generators
    • Namespaces
    • Objects
    • Operators
    • Types
    • Variables

Classes

  • ArrayNode
  • ArrayPairNode
  • BooleanNode
  • FalseNode
  • FloatNode
  • HeredocNode
  • IntegerNode
  • InterpolatedStringNode
  • NullNode
  • StringNode
  • StringVariableNode
  • TrueNode

Interfaces

  • ArrayElementNode
  • ScalarNode
  • Overview
  • Namespace
  • Class

Class ArrayPairNode

A key/value pair element in php array.

Pharborist\Node implements Pharborist\NodeInterface
Extended by Pharborist\ParentNode implements Pharborist\ParentNodeInterface
Extended by Pharborist\Types\ArrayPairNode implements Pharborist\Types\ArrayElementNode
Namespace: Pharborist\Types
Located at Types/ArrayPairNode.php
Methods summary
public Pharborist\Node
# getKey( )

Returns

Pharborist\Node
public Pharborist\Node
# getValue( )

Returns

Pharborist\Node
public static Pharborist\Types\ArrayPairNode
# create( Pharborist\Node $key, Pharborist\Node $value )

Parameters

$key
Array element's key.
$value
Array element's value.

Returns

Pharborist\Types\ArrayPairNode
Methods inherited from Pharborist\ParentNode
__clone(), __toString(), acceptVisitor(), addChild(), addChildren(), append(), childCount(), children(), clear(), find(), firstChild(), firstToken(), getSourcePosition(), getText(), getTree(), has(), isDescendant(), isEmpty(), lastChild(), lastToken(), mergeNode(), prepend(), walk()
Methods inherited from Pharborist\Node
after(), appendTo(), before(), closest(), fromValue(), furthest(), getLogicalBlock(), getRoot(), getStatement(), hasRoot(), index(), insertAfter(), insertBefore(), is(), isAllOf(), isAnyOf(), next(), nextAll(), nextToken(), nextUntil(), parent(), parents(), parentsUntil(), prependTo(), previous(), previousAll(), previousToken(), previousUntil(), remove(), replaceAll(), replaceWith(), siblings(), sortKey(), swapWith()
Pharborist API documentation generated by ApiGen