1 | <?php |
||
29 | class FormStepPersistence |
||
30 | { |
||
31 | /** |
||
32 | * @var string |
||
33 | */ |
||
34 | protected $objectHash; |
||
35 | |||
36 | /** |
||
37 | * @var array |
||
38 | */ |
||
39 | protected $validatedSteps = []; |
||
40 | |||
41 | /** |
||
42 | * @var array |
||
43 | */ |
||
44 | protected $stepsFormValues = []; |
||
45 | |||
46 | /** |
||
47 | * @param string $configurationHash |
||
48 | */ |
||
49 | public function __construct($configurationHash) |
||
53 | |||
54 | /** |
||
55 | * @param Step $step |
||
56 | */ |
||
57 | public function markStepAsValidated(Step $step) |
||
61 | |||
62 | /** |
||
63 | * @param Step $step |
||
64 | * @return bool |
||
65 | */ |
||
66 | public function stepWasValidated(Step $step) |
||
70 | |||
71 | /** |
||
72 | * @param Step $step |
||
73 | * @param array $formValues |
||
74 | */ |
||
75 | public function addStepFormValues(Step $step, array $formValues) |
||
79 | |||
80 | /** |
||
81 | * @param Step $step |
||
82 | * @return bool |
||
83 | */ |
||
84 | public function hasStepFormValues(Step $step) |
||
88 | |||
89 | /** |
||
90 | * @param Step $step |
||
91 | * @return array |
||
92 | */ |
||
93 | public function getStepFormValues(Step $step) |
||
97 | |||
98 | /** |
||
99 | * @return bool |
||
100 | */ |
||
101 | public function hasData() |
||
106 | |||
107 | /** |
||
108 | * @return string |
||
109 | */ |
||
110 | public function getObjectHash() |
||
114 | |||
115 | /** |
||
116 | * @param string $hash |
||
117 | */ |
||
118 | public function refreshObjectHash($hash) |
||
123 | } |
||
124 |