1 | <?php |
||
30 | class FormMetadata extends AbstractEntity |
||
31 | { |
||
32 | /** |
||
33 | * @var string |
||
34 | */ |
||
35 | protected $hash; |
||
36 | |||
37 | /** |
||
38 | * @var string |
||
39 | */ |
||
40 | protected $className; |
||
41 | |||
42 | /** |
||
43 | * @var string |
||
44 | */ |
||
45 | protected $identifier; |
||
46 | |||
47 | /** |
||
48 | * @var \Romm\Formz\Domain\Model\DataObject\FormMetadataObject |
||
49 | */ |
||
50 | protected $data; |
||
51 | |||
52 | /** |
||
53 | * @param string $hash |
||
54 | * @param string $className |
||
55 | * @param string $identifier |
||
56 | * @param FormMetadataObject $data |
||
57 | */ |
||
58 | public function __construct($hash, $className, $identifier, FormMetadataObject $data) |
||
65 | |||
66 | /** |
||
67 | * @return string |
||
68 | */ |
||
69 | public function getHash() |
||
73 | |||
74 | /** |
||
75 | * @return string |
||
76 | */ |
||
77 | public function getIdentifier() |
||
81 | |||
82 | /** |
||
83 | * @param string $identifier |
||
84 | */ |
||
85 | public function setIdentifier($identifier) |
||
89 | |||
90 | /** |
||
91 | * @return string |
||
92 | */ |
||
93 | public function getClassName() |
||
97 | |||
98 | /** |
||
99 | * @return bool |
||
100 | */ |
||
101 | public function hasIdentifier() |
||
105 | |||
106 | /** |
||
107 | * @return FormMetadataObject |
||
108 | */ |
||
109 | public function getData() |
||
113 | |||
114 | /** |
||
115 | * Commits the last changes of this instance in database. |
||
116 | */ |
||
117 | public function commit() |
||
129 | } |
||
130 |