| 1 | <?php |
||
| 10 | class MetadataConfigFactory |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @param ContainerInterface $container |
||
| 14 | * |
||
| 15 | * @throws \Interop\Container\Exception\ContainerException |
||
| 16 | * @throws \Facile\DoctrineDDM\Exception\InvalidArgumentException |
||
| 17 | * |
||
| 18 | * @return Configuration\Metadata |
||
| 19 | */ |
||
| 20 | 2 | public function __invoke(ContainerInterface $container) |
|
| 26 | |||
| 27 | /** |
||
| 28 | * @param array $configuration |
||
| 29 | * |
||
| 30 | * @throws \Facile\DoctrineDDM\Exception\InvalidArgumentException |
||
| 31 | * |
||
| 32 | * @return Configuration\Metadata |
||
| 33 | */ |
||
| 34 | 4 | public function createMetadata(array $configuration): Configuration\Metadata |
|
| 46 | |||
| 47 | /** |
||
| 48 | * @param string $entity |
||
| 49 | * @param array $configuration |
||
| 50 | * |
||
| 51 | * @return Configuration\EntityMetadata |
||
| 52 | */ |
||
| 53 | 3 | protected function createEntityMetadata(string $entity, array $configuration): Configuration\EntityMetadata |
|
| 57 | } |
||
| 58 |