Encapsed

Encapsed

new Encapsed()

Defines an encapsed string (contains expressions)

Properties:
Name Type Description
type String

Defines the type of encapsed string (shell, heredoc, string)

label String | Null

The heredoc label, defined only when the type is heredoc

Source:

Extends

Methods

destroy()

Destroying an unused node

Inherited From:
Source:

includeToken(parser)

Includes current token position of the parser

Parameters:
Name Type Description
parser *
Inherited From:
Source:

setTrailingComments(docs)

Attach comments to current node

Parameters:
Name Type Description
docs *
Inherited From:
Source: