| Conditions | 4 |
| Paths | 4 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 4 |
| Changes | 0 | ||
| 1 | <?php |
||
| 62 | 164 | private function setResult($result, string $value, $operator): int |
|
| 63 | { |
||
| 64 | 164 | if (!isset($result)) { |
|
| 65 | 164 | $result = (int) $value; |
|
| 66 | 36 | } elseif ($operator === self::LOGICAL_AND) { |
|
| 67 | 32 | $result &= $value; |
|
| 68 | 22 | } elseif ($operator === self::LOGICAL_OR) { |
|
| 69 | 22 | $result |= $value; |
|
| 70 | } |
||
| 71 | |||
| 72 | 164 | return $result; |
|
| 73 | } |
||
| 74 | |||
| 85 |