| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | 17 | public function run(array $args) |
|
| 13 | { |
||
| 14 | 17 | $this->expectArguments('lambda', [['Vector']], $args); |
|
| 15 | 16 | if (!isset($args[1])) { |
|
| 16 | 1 | throw new ArgumentException('"lambda" expects argument 1 to be a function body.'); |
|
| 17 | } |
||
| 18 | 15 | return new LambdaType($this->eval, $args[0], $args[1]); |
|
| 19 | } |
||
| 20 | } |
||
| 21 |