| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 30 | public function execute(&$stack) |
||
| 31 | { |
||
| 32 | $arguments = []; |
||
| 33 | list($count, $function) = $this->value; |
||
| 34 | for ($i = 0; $i < $count; $i++) { |
||
| 35 | array_push($arguments, array_pop($stack)->getValue()); |
||
| 36 | } |
||
| 37 | $result = call_user_func_array($function, array_reverse($arguments)); |
||
| 38 | return new NumberToken($this->getOffset(), $result); |
||
| 39 | } |
||
| 40 | } |
||
| 41 |