| 1 | <?php |
||
| 12 | class Metadata |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var EntityMetadata[] |
||
| 16 | */ |
||
| 17 | protected $entityMetadatas = []; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @return EntityMetadata[] |
||
| 21 | */ |
||
| 22 | 5 | public function getEntityMetadatas(): array |
|
| 26 | |||
| 27 | /** |
||
| 28 | * @param EntityMetadata[] $entityMetadatas |
||
| 29 | * |
||
| 30 | * @throws \Facile\DoctrineDDM\Exception\InvalidArgumentException |
||
| 31 | */ |
||
| 32 | 6 | public function setEntityMetadatas(array $entityMetadatas) |
|
| 40 | |||
| 41 | /** |
||
| 42 | * @param EntityMetadata $entityMetadata |
||
| 43 | * |
||
| 44 | * @throws \Facile\DoctrineDDM\Exception\InvalidArgumentException |
||
| 45 | */ |
||
| 46 | 6 | public function addEntityMetadata(EntityMetadata $entityMetadata) |
|
| 56 | |||
| 57 | /** |
||
| 58 | * @param string $entityClass |
||
| 59 | * |
||
| 60 | * @return EntityMetadata|null |
||
| 61 | */ |
||
| 62 | 5 | public function getEntityMetadata(string $entityClass) |
|
| 66 | } |
||
| 67 |