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

getLayerA() public method

public getLayerA ( ) : mixed
return mixed
    public function getLayerA()
    {
        return $this->layerA;
    }

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