1 | <?php |
||
24 | class FormMetadata extends AbstractEntity |
||
25 | { |
||
26 | /** |
||
27 | * @var string |
||
28 | */ |
||
29 | protected $hash; |
||
30 | |||
31 | /** |
||
32 | * @var string |
||
33 | */ |
||
34 | protected $className; |
||
35 | |||
36 | /** |
||
37 | * @var string |
||
38 | */ |
||
39 | protected $identifier; |
||
40 | |||
41 | /** |
||
42 | * @var \Romm\Formz\Domain\Model\DataObject\FormMetadataObject |
||
43 | */ |
||
44 | protected $data; |
||
45 | |||
46 | /** |
||
47 | * @param string $hash |
||
48 | * @param string $className |
||
49 | * @param string $identifier |
||
50 | * @param FormMetadataObject $data |
||
51 | */ |
||
52 | public function __construct($hash, $className, $identifier, FormMetadataObject $data) |
||
59 | |||
60 | /** |
||
61 | * @return string |
||
62 | */ |
||
63 | public function getHash() |
||
67 | |||
68 | /** |
||
69 | * @return string |
||
70 | */ |
||
71 | public function getIdentifier() |
||
75 | |||
76 | /** |
||
77 | * @param string $identifier |
||
78 | */ |
||
79 | public function setIdentifier($identifier) |
||
83 | |||
84 | /** |
||
85 | * @return bool |
||
86 | */ |
||
87 | public function hasIdentifier() |
||
91 | |||
92 | /** |
||
93 | * @return FormMetadataObject |
||
94 | */ |
||
95 | public function getData() |
||
99 | |||
100 | /** |
||
101 | * @todo |
||
102 | */ |
||
103 | public function commit() |
||
116 | } |
||
117 |