| Total Complexity | 5 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class Form |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @param string $id |
||
| 14 | * @return array |
||
| 15 | */ |
||
| 16 | public function buildFields( $id ) |
||
| 17 | { |
||
| 18 | return array_reduce( $this->getFields( $id ), function( $carry, $field ) { |
||
| 19 | return $carry.$field; |
||
| 20 | }); |
||
| 21 | } |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @param string $id |
||
| 25 | * @return array |
||
| 26 | */ |
||
| 27 | public function getFields( $id ) |
||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @param string $id |
||
| 43 | * @return void |
||
| 44 | */ |
||
| 45 | public function renderFields( $id ) |
||
| 48 | } |
||
| 49 | } |
||
| 50 |