Total Complexity | 9 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
11 | class UserFormsFieldList extends FieldList implements UserFormsFieldContainer |
||
12 | { |
||
13 | public function processNext(EditableFormField $field) |
||
14 | { |
||
15 | $formField = $field->getFormField(); |
||
16 | if (!$formField) { |
||
|
|||
17 | return $this; |
||
18 | } |
||
19 | |||
20 | $this->push($formField); |
||
21 | |||
22 | if ($formField instanceof UserFormsFieldContainer) { |
||
23 | return $formField->setParent($this); |
||
24 | } |
||
25 | |||
26 | return $this; |
||
27 | } |
||
28 | |||
29 | public function getParent() |
||
33 | } |
||
34 | |||
35 | public function setParent(UserFormsFieldContainer $parent) |
||
38 | } |
||
39 | |||
40 | /** |
||
41 | * Remove all empty steps |
||
42 | */ |
||
43 | public function clearEmptySteps() |
||
52 |