Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
32 | 13 | public function __construct(\ReflectionMethod $method) |
|
33 | { |
||
34 | 13 | $this->method = $method->name; |
|
35 | 13 | $proceedArg = []; |
|
36 | 13 | foreach ($method->getParameters() as $parameter) { |
|
37 | 11 | $this->args[] = new Arg(new Variable($parameter->name)); |
|
38 | 11 | $proceedArg[] = new ArrayItem(new Variable($parameter->name)); |
|
39 | } |
||
40 | 13 | $this->proceedArg = new Arg(new Node\Expr\Array_($proceedArg)); |
|
41 | 13 | } |
|
42 | |||
66 |