| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | public function addNum(int $num): void |
||
| 20 | { |
||
| 21 | if ($this->isEven) { |
||
| 22 | $this->large->insert($num); |
||
| 23 | $this->small->insert($this->large->extract()); |
||
| 24 | } else { |
||
| 25 | $this->small->insert($num); |
||
| 26 | $this->large->insert($this->small->extract()); |
||
| 27 | } |
||
| 28 | $this->isEven = !$this->isEven; |
||
| 29 | } |
||
| 42 |