Documentation

Literal extends Node
in package

Abstract class of an AST node.

Table of Contents

Constants

BOOLEAN  = 2
NUMERIC  = 3
STRING  = 1

Properties

$type  : int
$value  : mixed

Methods

__construct()  : mixed
__toString()  : string
Dumps the AST Node into a string representation for information purpose only.
dispatch()  : string
Double-dispatch method, supposed to dispatch back to the walker.
dump()  : string

Constants

Properties

$type

public int $type
Tags
psalm-var

self::*

Methods

__construct()

public __construct(int $type, mixed $value) : mixed
Parameters
$type : int
$value : mixed
Tags
psalm-param

self::* $type

__toString()

Dumps the AST Node into a string representation for information purpose only.

public __toString() : string
Return values
string

dispatch()

Double-dispatch method, supposed to dispatch back to the walker.

public dispatch(mixed $walker) : string
Parameters
$walker : mixed
Return values
string

dump()

public dump(mixed $value) : string
Parameters
$value : mixed
Return values
string

        
On this page

Search results