| Conditions | 2 |
| Paths | 2 |
| Total Lines | 17 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | public function methods() |
||
| 30 | { |
||
| 31 | $this->phpClass->setAbstract(true); |
||
| 32 | foreach ($this->params as $request => $data) { |
||
| 33 | $sectionRequest = new RequestAbstract(); |
||
| 34 | $sectionRequest->renderToFile($data); |
||
| 35 | $className = "\\" . $sectionRequest->formClassNamespace() . "\\" . $sectionRequest->formClassName(); |
||
| 36 | |||
| 37 | $method = $this->phpClass->addMethod(formMethodName($request)); |
||
| 38 | $body = <<<PHP |
||
| 39 | return (new $className(\$this)); |
||
| 40 | PHP; |
||
| 41 | $method->addBody($body); |
||
| 42 | $method->addComment($data['description']); |
||
| 43 | $method->addComment("@return $className"); |
||
| 44 | } |
||
| 45 | return false; |
||
| 46 | } |
||
| 47 | } |