Total Complexity | 3 |
Total Lines | 40 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
8 | class UserFormsStepField extends UserFormsCompositeField |
||
9 | { |
||
10 | private static $casting = [ |
||
|
|||
11 | 'StepNumber' => 'Int' |
||
12 | ]; |
||
13 | |||
14 | /** |
||
15 | * Numeric index (1 based) of this step |
||
16 | * |
||
17 | * Null if unassigned |
||
18 | * |
||
19 | * @var int|null |
||
20 | */ |
||
21 | protected $number = null; |
||
22 | |||
23 | public function FieldHolder($properties = []) |
||
24 | { |
||
25 | return $this->Field($properties); |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * Get the step number |
||
30 | * |
||
31 | * @return int|null |
||
32 | */ |
||
33 | public function getStepNumber() |
||
36 | } |
||
37 | |||
38 | /** |
||
39 | * Re-assign this step to another number |
||
40 | * |
||
41 | * @param type $number |
||
42 | * @return $this |
||
43 | */ |
||
44 | public function setStepNumber($number) |
||
50 |