Symfony\Component\Validator\ExecutionContext::getGraphWalker PHP Method

getGraphWalker() public method

public getGraphWalker ( ) : Symfony\Component\Validator\GraphWalker
return Symfony\Component\Validator\GraphWalker
    public function getGraphWalker()
    {
        return $this->graphWalker;
    }

Usage Example

 public function testInit()
 {
     $this->assertCount(0, $this->context->getViolations());
     $this->assertSame('Root', $this->context->getRoot());
     $this->assertSame('foo.bar', $this->context->getPropertyPath());
     $this->assertSame('Group', $this->context->getGroup());
     $this->visitor->expects($this->once())->method('getGraphWalker')->will($this->returnValue('GRAPHWALKER'));
     // BC
     set_error_handler(array($this, "deprecationErrorHandler"));
     $this->assertNull($this->context->getCurrentClass());
     $this->assertNull($this->context->getCurrentProperty());
     $this->assertSame('GRAPHWALKER', $this->context->getGraphWalker());
     $this->assertSame($this->metadataFactory, $this->context->getMetadataFactory());
     restore_error_handler();
 }
All Usage Examples Of Symfony\Component\Validator\ExecutionContext::getGraphWalker