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