__toString() public method

Returns the string representation of the property path
public __toString ( ) : string
return string
 public function testToString()
 {
     $path = new PropertyPath('reference.traversable[index].property');
     $this->assertEquals('reference.traversable[index].property', $path->__toString());
 }