Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
16 | 14 | public function run(array $args) |
|
17 | { |
||
18 | 14 | if (count($args) == 0) { |
|
19 | 1 | return $this->newReturnType('Object', new \stdClass()); |
|
20 | } |
||
21 | 13 | $this->checkClass($args); |
|
22 | 11 | $object = $args[0]->value(); |
|
23 | 11 | $args = $this->getArgValues($args); |
|
24 | 11 | return $this->newReturnType('Object', new $object(...$args)); |
|
25 | } |
||
26 | |||
46 |