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