| Conditions | 3 |
| Paths | 4 |
| Total Lines | 13 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | public function generate() { |
||
| 23 | $code = $this->security . ' '; |
||
| 24 | $code .= $this->static ? 'static ' : ''; |
||
| 25 | $code .= 'function ' . $this->name . '('; |
||
| 26 | foreach ($this->propertys as $param) { |
||
| 27 | $code .= '$' . $param . ','; |
||
| 28 | } |
||
| 29 | $code = rtrim($code, ','); |
||
| 30 | $code .= ") {\n"; |
||
| 31 | $code .= ' ' . str_replace("\n", "\n ", $this->body); |
||
| 32 | $code .= "\n}"; |
||
| 33 | return $code; |
||
| 34 | } |
||
| 35 | |||
| 37 |