1 | <?php |
||
23 | class DocumentMetadata extends GenericMetadata implements DocumentMetadataInterface |
||
24 | { |
||
25 | /** |
||
26 | * @var ReferenceMetadataInterface |
||
27 | * @internal |
||
28 | */ |
||
29 | public $content; |
||
30 | |||
31 | /** |
||
32 | * @var bool |
||
33 | * @internal |
||
34 | */ |
||
35 | public $allowEmpty = false; |
||
36 | |||
37 | /** |
||
38 | * @inheritdoc |
||
39 | */ |
||
40 | public function getContentMetadata() |
||
44 | |||
45 | /** |
||
46 | * Sets metadata for document content |
||
47 | * |
||
48 | * @param ReferenceMetadataInterface $metadata |
||
49 | * @return $this |
||
50 | */ |
||
51 | public function setContentMetadata(ReferenceMetadataInterface $metadata) |
||
57 | |||
58 | /** |
||
59 | * @inheritdoc |
||
60 | */ |
||
61 | public function canBeEmpty() |
||
65 | |||
66 | /** |
||
67 | * Sets value of flag which show that document can be empty |
||
68 | * |
||
69 | * @param bool $allow |
||
70 | * @return $this |
||
71 | */ |
||
72 | public function setCanBeEmpty($allow) |
||
78 | } |