Node\GetAttrNode::METHOD_CALL
),
'foo.bar("arg1", 2, true)',
['foo'
],
],
[ new Node\
GetAttrNode(new Node\
NameNode('foo'
),
new Node\
ConstantNode(3
),
new Node\
ArgumentsNode(), Node\GetAttrNode::ARRAY_CALL
),
'foo[3]',
['foo'
],
],
[ new Node\
ConditionalNode(new Node\
ConstantNode(true
),
new Node\
ConstantNode(true
),
new Node\
ConstantNode(false
)),
'true ? true : false',
],
[ new Node\
BinaryNode('matches',
new Node\
ConstantNode('foo'
),
new Node\
ConstantNode('/foo/'
)),
'"foo" matches "/foo/"',
],
[ new Node\
BinaryNode('starts with',
new Node\
ConstantNode('foo'
),
new Node\
ConstantNode('f'
)),
'"foo" starts with "f"',
],
[