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 StringNode

A string, like e.g. 'hello world' or "We are the knights who say, 'Ni!'". This does not include strings interspersed with variables or other expressions -- those are handled by InterpolatedStringNode.

Pharborist\Node implements Pharborist\NodeInterface
Extended by Pharborist\TokenNode
Extended by Pharborist\Types\StringNode implements Pharborist\ExpressionNode, Pharborist\Types\ScalarNode
Namespace: Pharborist\Types
See: \Pharborist\InterpolatedStringNode
Located at Types/StringNode.php
Methods summary
public static Pharborist\Types\StringNode
# create( string $text )

Creates a new constant string.

Creates a new constant string.

Parameters

$text
The text of the string.

Returns

Pharborist\Types\StringNode
public string
# toValue( )

Returns the original value of the string (unenclosed by quotes).

Returns the original value of the string (unenclosed by quotes).

Returns

string

Implementation of

Pharborist\Types\ScalarNode::toValue()
Methods inherited from Pharborist\TokenNode
__construct(), __toString(), getSourcePosition(), getText(), getType(), getTypeName(), setText(), typeName()
Methods inherited from Pharborist\Node
__clone(), 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