1 | <?php |
||
19 | class PersistenceMiddlewareService implements SingletonInterface |
||
20 | { |
||
21 | /** |
||
22 | * @var FormIdentifierObject |
||
23 | */ |
||
24 | protected $identifierObject; |
||
25 | |||
26 | /** |
||
27 | * Change this flag if the form instance should not be injected in |
||
28 | * persistence at the end of the middleware dispatching process. |
||
29 | * |
||
30 | * @var bool |
||
31 | */ |
||
32 | protected $injectionFlag = true; |
||
33 | |||
34 | /** |
||
35 | * Resets the service states. |
||
36 | */ |
||
37 | public function reset() |
||
42 | |||
43 | /** |
||
44 | * @return FormIdentifierObject |
||
45 | */ |
||
46 | public function getIdentifierObject() |
||
50 | |||
51 | /** |
||
52 | * @return bool |
||
53 | */ |
||
54 | public function hasIdentifierObject() |
||
58 | |||
59 | /** |
||
60 | * @param FormIdentifierObject $identifierObject |
||
61 | */ |
||
62 | public function setIdentifierObject(FormIdentifierObject $identifierObject) |
||
66 | |||
67 | /** |
||
68 | * @return bool |
||
69 | */ |
||
70 | public function getInjectionFlag() |
||
74 | |||
75 | /** |
||
76 | * @param bool $injectionFlag |
||
77 | */ |
||
78 | public function setInjectionFlag($injectionFlag) |
||
82 | } |
||
83 |