1 | <?php |
||
23 | class DocumentMetadata extends GenericMetadata implements DocumentMetadataInterface |
||
24 | { |
||
25 | /** |
||
26 | * @var PropertyMetadataInterface |
||
27 | * @internal |
||
28 | */ |
||
29 | public $content; |
||
30 | |||
31 | /** |
||
32 | * @var PropertyMetadataInterface |
||
33 | * @internal |
||
34 | */ |
||
35 | public $metadata; |
||
36 | |||
37 | /** |
||
38 | * @var bool |
||
39 | * @internal |
||
40 | */ |
||
41 | public $allowEmpty = false; |
||
42 | |||
43 | /** |
||
44 | * @inheritdoc |
||
45 | */ |
||
46 | 4 | public function getContentMetadata() |
|
50 | |||
51 | /** |
||
52 | * Sets metadata for document content |
||
53 | * |
||
54 | * @param PropertyMetadataInterface $metadata |
||
55 | * @return $this |
||
56 | */ |
||
57 | 4 | public function setContentMetadata(PropertyMetadataInterface $metadata) |
|
63 | |||
64 | /** |
||
65 | * @return PropertyMetadataInterface |
||
66 | */ |
||
67 | 3 | public function getMetadata() |
|
71 | |||
72 | /** |
||
73 | * @param PropertyMetadataInterface $metadata |
||
74 | * @return DocumentMetadata |
||
75 | */ |
||
76 | 3 | public function setMetadata($metadata) |
|
82 | |||
83 | /** |
||
84 | * @inheritdoc |
||
85 | */ |
||
86 | 1 | public function isAllowEmpty() |
|
90 | |||
91 | /** |
||
92 | * Sets value of flag which show that document can be empty |
||
93 | * |
||
94 | * @param bool $allow |
||
95 | * @return $this |
||
96 | */ |
||
97 | 4 | public function setAllowEmpty($allow) |
|
103 | } |
||
104 |