Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
getFunctionNode example
break
;
case
'none':
case
'NONE':
case
'null':
case
'NULL':
$node
=
new
ConstantExpression
(
null,
$token
->
getLine
(
)
)
;
break
;
default
:
if
(
'(' ===
$this
->parser->
getCurrentToken
(
)
->
getValue
(
)
)
{
$node
=
$this
->
getFunctionNode
(
$token
->
getValue
(
)
,
$token
->
getLine
(
)
)
;
}
else
{
$node
=
new
NameExpression
(
$token
->
getValue
(
)
,
$token
->
getLine
(
)
)
;
}
}
break
;
case
/* Token::NUMBER_TYPE */ 6:
$this
->parser->
getStream
(
)
->
next
(
)
;
$node
=
new
ConstantExpression
(
$token
->
getValue
(
)
,
$token
->
getLine
(
)
)
;
break
;