Documentation

QuoteAwareConstExprStringNode extends ConstExprStringNode
in package
implements ConstExprNode Uses NodeAttributes

Table of Contents

Interfaces

ConstExprNode

Constants

DOUBLE_QUOTED  = 2
SINGLE_QUOTED  = 1

Properties

$quoteType  : self::SINGLE_QUOTED|self::DOUBLE_QUOTED
$value  : string
$attributes  : array<string, mixed>

Methods

__construct()  : mixed
__toString()  : string
getAttribute()  : mixed
hasAttribute()  : bool
setAttribute()  : void
escapeDoubleQuotedString()  : string

Constants

Properties

Methods

__construct()

public __construct(string $value, self::SINGLE_QUOTED|self::DOUBLE_QUOTED $quoteType) : mixed
Parameters
$value : string
$quoteType : self::SINGLE_QUOTED|self::DOUBLE_QUOTED

getAttribute()

public getAttribute(string $key) : mixed
Parameters
$key : string

hasAttribute()

public hasAttribute(string $key) : bool
Parameters
$key : string
Return values
bool

setAttribute()

public setAttribute(string $key, mixed $value) : void
Parameters
$key : string
$value : mixed

        
On this page

Search results