public function setProperty($property)
{
$this->property = $property;
}
/** * @return array */ public function objectPathOnObjectExpressions() { $obj = new Fixtures\TestObject(); $obj->setProperty('Test'); $nested = new Fixtures\TestObject(); $nested->setProperty($obj); // Wrap an object inside a context $c = new Context(['obj' => $obj, 'nested' => $nested]); return [['obj.property', $c, 'Test'], ['nested.property.property', $c, 'Test'], ['obj.callMe("Foo")', $c, 'Hello, Foo!']]; }