Conditions | 3 |
Paths | 3 |
Total Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
36 | 13 | public function update(Evaluation $evaluation, NodeType $nodeType): void |
|
37 | { |
||
38 | 13 | if ($nodeType == NodeType::MAX()) { |
|
39 | 13 | $this->alpha = max($this->alpha, $evaluation->score); |
|
40 | 12 | } elseif ($nodeType == NodeType::MIN()) { |
|
41 | 12 | $this->beta = min($this->beta, $evaluation->score); |
|
42 | } |
||
43 | 13 | } |
|
44 | |||
54 |