1 | <?php |
||
18 | class FormStepPersistence |
||
19 | { |
||
20 | /** |
||
21 | * @var string |
||
22 | */ |
||
23 | protected $objectHash; |
||
24 | |||
25 | /** |
||
26 | * @var array |
||
27 | */ |
||
28 | protected $validatedSteps = []; |
||
29 | |||
30 | /** |
||
31 | * @var array |
||
32 | */ |
||
33 | protected $stepsFormValues = []; |
||
34 | |||
35 | /** |
||
36 | * @param string $configurationHash |
||
37 | */ |
||
38 | public function __construct($configurationHash) |
||
42 | |||
43 | /** |
||
44 | * @param Step $step |
||
45 | */ |
||
46 | public function markStepAsValidated(Step $step) |
||
50 | |||
51 | /** |
||
52 | * @param Step $step |
||
53 | * @return bool |
||
54 | */ |
||
55 | public function stepWasValidated(Step $step) |
||
59 | |||
60 | /** |
||
61 | * @param Step $step |
||
62 | * @param array $formValues |
||
63 | */ |
||
64 | public function addStepFormValues(Step $step, array $formValues) |
||
68 | |||
69 | /** |
||
70 | * @param Step $step |
||
71 | * @return bool |
||
72 | */ |
||
73 | public function hasStepFormValues(Step $step) |
||
77 | |||
78 | /** |
||
79 | * @param Step $step |
||
80 | * @return array |
||
81 | */ |
||
82 | public function getStepFormValues(Step $step) |
||
86 | |||
87 | /** |
||
88 | * @return bool |
||
89 | */ |
||
90 | public function hasData() |
||
95 | |||
96 | /** |
||
97 | * @return string |
||
98 | */ |
||
99 | public function getObjectHash() |
||
103 | |||
104 | /** |
||
105 | * @param string $hash |
||
106 | */ |
||
107 | public function refreshObjectHash($hash) |
||
112 | } |
||
113 |