Total Complexity | 3 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
7 | final class ModelFactory |
||
8 | { |
||
9 | /** |
||
10 | * Returns the desired model using the provided data. |
||
11 | * |
||
12 | * @param string $name The name of the desired model. |
||
13 | * @param string $xml The XML. |
||
14 | * @return ModelInterface |
||
15 | * @throws InvalidModelException Thrown when an invalid model is |
||
16 | * requested. |
||
17 | */ |
||
18 | public static function factory(string $name, string $xml): ModelInterface |
||
36 |