SensioLabs\Deptrac\RulesetEngine\RulesetViolation::getDependency PHP Метод

getDependency() публичный Метод

public getDependency ( ) : Dependency | InheritDependency
Результат SensioLabs\Deptrac\DependencyResult\Dependency | SensioLabs\Deptrac\DependencyResult\InheritDependency
    public function getDependency()
    {
        return $this->dependeny;
    }

Usage Example

 public function testGetSet()
 {
     $ruleViolation = new RulesetViolation($dep = $this->prophesize(DependencyInterface::class)->reveal(), 'layerA', 'layerB');
     $this->assertSame($dep, $ruleViolation->getDependency());
     $this->assertEquals('layerA', $ruleViolation->getLayerA());
     $this->assertEquals('layerB', $ruleViolation->getLayerB());
 }
All Usage Examples Of SensioLabs\Deptrac\RulesetEngine\RulesetViolation::getDependency