Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
26 | 8 | public static function create($type, ClassMetadataBuilder $builder) |
|
27 | { |
||
28 | 8 | if (isset(static::$map[$type])) { |
|
29 | 7 | return new static::$map[$type]($builder); |
|
30 | } |
||
31 | |||
32 | 1 | throw new InvalidArgumentException("Inheritance type [{$type}] does not exist. SINGLE_TABLE and JOINED are support"); |
|
33 | } |
||
34 | } |
||
35 |