SensioLabs\Deptrac\RulesetEngine\RulesetViolation::getLayerB PHP Method

getLayerB() public method

public getLayerB ( ) : mixed
return mixed
    public function getLayerB()
    {
        return $this->layerB;
    }

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::getLayerB