1 | <?php |
||
8 | class InheritanceFactory |
||
9 | { |
||
10 | /** |
||
11 | * @var array |
||
12 | */ |
||
13 | protected static $map = [ |
||
14 | 'JOINED' => JoinedTableInheritance::class, |
||
15 | 'SINGLE_TABLE' => SingleTableInheritance::class, |
||
16 | Inheritance::SINGLE => SingleTableInheritance::class, |
||
17 | Inheritance::JOINED => JoinedTableInheritance::class |
||
18 | ]; |
||
19 | |||
20 | /** |
||
21 | * @param string $type |
||
22 | * @param ClassMetadataBuilder $builder |
||
23 | * |
||
24 | * @return Inheritance |
||
25 | */ |
||
26 | 8 | public static function create($type, ClassMetadataBuilder $builder) |
|
34 | } |
||
35 |