Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 11 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
49 | 2 | private function processRuleAttributes(PolicyRule $rule) { |
|
50 | 2 | foreach($this->rules[$rule->getName()]['attributes'] as $attributeName => $attribute) { |
|
51 | 2 | $rule->addPolicyRuleAttribute( |
|
52 | 2 | (new PolicyRuleAttribute()) |
|
53 | 2 | ->setAttribute($this->attributeManager->getAttribute($attributeName)) |
|
54 | 2 | ->setComparison($attribute['comparison']) |
|
55 | 2 | ->setComparisonType($attribute['comparison_type']) |
|
56 | 2 | ->setValue($attribute['value']) |
|
57 | 2 | ); |
|
58 | 2 | } |
|
59 | 2 | } |
|
60 | } |
||
61 |