Symfony\Component\Form\PropertyPath::__toString PHP Méthode

__toString() public méthode

Returns the string representation of the property path
public __toString ( ) : string
Résultat 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());
 }