1 | <?php |
||
28 | class FormObjectProxy |
||
29 | { |
||
30 | /** |
||
31 | * @var string |
||
32 | */ |
||
33 | protected $name; |
||
34 | |||
35 | /** |
||
36 | * @var FormObject |
||
37 | */ |
||
38 | protected $formObject; |
||
39 | |||
40 | /** |
||
41 | * @var FormInterface |
||
42 | */ |
||
43 | protected $form; |
||
44 | |||
45 | /** |
||
46 | * @var FormObjectRequestData |
||
47 | */ |
||
48 | protected $requestData; |
||
49 | |||
50 | /** |
||
51 | * @var string |
||
52 | */ |
||
53 | protected $formHash; |
||
54 | |||
55 | /** |
||
56 | * @var bool |
||
57 | */ |
||
58 | protected $formWasSubmitted = false; |
||
59 | |||
60 | /** |
||
61 | * @var FormResult |
||
62 | */ |
||
63 | protected $formResult; |
||
64 | |||
65 | /** |
||
66 | * @var FormObjectMetadata |
||
67 | */ |
||
68 | protected $metadata; |
||
69 | |||
70 | /** |
||
71 | * @var PersistenceManager |
||
72 | */ |
||
73 | protected $persistenceManager; |
||
74 | |||
75 | /** |
||
76 | * @param FormObject $formObject |
||
77 | * @param FormInterface $form |
||
78 | */ |
||
79 | public function __construct(FormObject $formObject, FormInterface $form) |
||
87 | |||
88 | /** |
||
89 | * @return FormObjectRequestData |
||
90 | */ |
||
91 | public function getRequestData() |
||
95 | |||
96 | /** |
||
97 | * @return FormInterface |
||
98 | */ |
||
99 | public function getForm() |
||
103 | |||
104 | /** |
||
105 | * Will mark the form as submitted (change the result returned by the |
||
106 | * function `formWasSubmitted()`). |
||
107 | */ |
||
108 | public function markFormAsSubmitted() |
||
112 | |||
113 | /** |
||
114 | * Returns `true` if the form was submitted by the user. |
||
115 | * |
||
116 | * @return bool |
||
117 | */ |
||
118 | public function formWasSubmitted() |
||
122 | |||
123 | /** |
||
124 | * @return FormResult |
||
125 | */ |
||
126 | public function getFormResult() |
||
130 | |||
131 | /** |
||
132 | * @return bool |
||
133 | */ |
||
134 | public function hasFormResult() |
||
138 | |||
139 | /** |
||
140 | * @param FormResult $formResult |
||
141 | */ |
||
142 | public function setFormResult($formResult) |
||
146 | |||
147 | /** |
||
148 | * @return FormMetadata |
||
149 | */ |
||
150 | public function getMetadata() |
||
154 | |||
155 | /** |
||
156 | * @param string $hash |
||
157 | */ |
||
158 | public function setFormHash($hash) |
||
163 | |||
164 | /** |
||
165 | * @return string |
||
166 | */ |
||
167 | public function getFormHash() |
||
175 | |||
176 | /** |
||
177 | * @return PersistenceManager |
||
178 | */ |
||
179 | public function getPersistenceManager() |
||
183 | |||
184 | /** |
||
185 | * @param FormObjectRequestData $requestData |
||
186 | */ |
||
187 | public function injectRequestData(FormObjectRequestData $requestData) |
||
191 | } |
||
192 |