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