Symfony\Component\Form\Util\PropertyPath::__toString PHP Method

__toString() public method

Returns the string representation of the property path
public __toString ( ) : string
return string
    public function __toString()
    {
        return $this->string;
    }

Usage Example

 public function testToString()
 {
     $path = new PropertyPath('reference.traversable[index].property');
     $this->assertEquals('reference.traversable[index].property', $path->__toString());
 }