1 | <?php |
||
27 | class FormObject |
||
28 | { |
||
29 | /** |
||
30 | * @var string |
||
31 | */ |
||
32 | protected $name; |
||
33 | |||
34 | /** |
||
35 | * @var FormObjectStatic |
||
36 | */ |
||
37 | protected $static; |
||
38 | |||
39 | /** |
||
40 | * @var FormObjectProxy |
||
41 | */ |
||
42 | protected $proxy; |
||
43 | |||
44 | /** |
||
45 | * You should never create a new instance of this class directly, use the |
||
46 | * `FormObjectFactory->getInstanceFromClassName()` function instead. |
||
47 | * |
||
48 | * @param string $name |
||
49 | * @param FormObjectStatic $static |
||
50 | */ |
||
51 | public function __construct($name, FormObjectStatic $static) |
||
56 | |||
57 | /** |
||
58 | * @return string |
||
59 | */ |
||
60 | public function getName() |
||
64 | |||
65 | /** |
||
66 | * @return string |
||
67 | */ |
||
68 | public function getClassName() |
||
72 | |||
73 | /** |
||
74 | * @return FormDefinition |
||
75 | */ |
||
76 | public function getDefinition() |
||
80 | |||
81 | /** |
||
82 | * @return Result |
||
83 | */ |
||
84 | public function getDefinitionValidationResult() |
||
88 | |||
89 | /** |
||
90 | * @return array |
||
91 | */ |
||
92 | public function getProperties() |
||
96 | |||
97 | /** |
||
98 | * @return FormInterface |
||
99 | */ |
||
100 | public function getForm() |
||
104 | |||
105 | /** |
||
106 | * @return bool |
||
107 | */ |
||
108 | public function hasForm() |
||
112 | |||
113 | /** |
||
114 | * @param FormInterface $form |
||
115 | * @throws DuplicateEntryException |
||
116 | */ |
||
117 | public function setForm(FormInterface $form) |
||
127 | |||
128 | /** |
||
129 | * @return bool |
||
130 | */ |
||
131 | public function formWasSubmitted() |
||
135 | |||
136 | /** |
||
137 | * @return bool |
||
138 | */ |
||
139 | public function formWasValidated() |
||
143 | |||
144 | /** |
||
145 | * @return FormResult |
||
146 | */ |
||
147 | public function getFormResult() |
||
151 | |||
152 | /** |
||
153 | * @return string |
||
154 | */ |
||
155 | public function getFormHash() |
||
159 | |||
160 | /** |
||
161 | * @return string |
||
162 | */ |
||
163 | public function getObjectHash() |
||
167 | |||
168 | /** |
||
169 | * @param FormInterface $form |
||
170 | */ |
||
171 | protected function registerFormInstance(FormInterface $form) |
||
177 | |||
178 | /** |
||
179 | * @return FormObjectProxy |
||
180 | * @throws PropertyNotAccessibleException |
||
181 | */ |
||
182 | protected function getProxy() |
||
190 | |||
191 | /** |
||
192 | * Wrapper for unit tests. |
||
193 | * |
||
194 | * @param FormInterface $form |
||
195 | * @return FormObjectProxy |
||
196 | */ |
||
197 | protected function createProxy(FormInterface $form) |
||
201 | } |
||
202 |