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