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

getRoot() public method

public getRoot ( )
    public function getRoot()
    {
        return $this->root;
    }

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());
 }
All Usage Examples Of Symfony\Component\Validator\ExecutionContext::getRoot