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 FormInterface |
||
91 | */ |
||
92 | public function getForm() |
||
96 | |||
97 | /** |
||
98 | * @return bool |
||
99 | */ |
||
100 | public function hasForm() |
||
104 | |||
105 | /** |
||
106 | * @param FormInterface $form |
||
107 | * @throws DuplicateEntryException |
||
108 | */ |
||
109 | public function setForm(FormInterface $form) |
||
117 | |||
118 | /** |
||
119 | * @return bool |
||
120 | */ |
||
121 | public function formWasSubmitted() |
||
125 | |||
126 | /** |
||
127 | * @return bool |
||
128 | */ |
||
129 | public function formWasValidated() |
||
133 | |||
134 | /** |
||
135 | * @return FormResult |
||
136 | */ |
||
137 | public function getFormResult() |
||
141 | |||
142 | /** |
||
143 | * @return string |
||
144 | */ |
||
145 | public function getFormHash() |
||
149 | |||
150 | /** |
||
151 | * @return string |
||
152 | */ |
||
153 | public function getObjectHash() |
||
157 | |||
158 | /** |
||
159 | * @return FormObjectProxy |
||
160 | * @throws PropertyNotAccessibleException |
||
161 | */ |
||
162 | protected function getProxy() |
||
170 | |||
171 | /** |
||
172 | * Wrapper for unit tests. |
||
173 | * |
||
174 | * @param FormInterface $form |
||
175 | * @return FormObjectProxy |
||
176 | */ |
||
177 | protected function createProxy(FormInterface $form) |
||
181 | } |
||
182 |