Total Complexity | 2 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | abstract class Factory |
||
13 | { |
||
14 | |||
15 | /** |
||
16 | * This method is used to create a new instance of the entity. |
||
17 | * |
||
18 | * @param string $class |
||
19 | * @param mixed $property |
||
20 | * @return Entity |
||
21 | */ |
||
22 | public static function resolveEntityClass(string $class, mixed $property): Entity |
||
29 | } |
||
30 | |||
31 | /** |
||
32 | * @param array $data |
||
33 | * @return Entity |
||
34 | */ |
||
35 | abstract public static function make(array $data): Entity; |
||
36 | |||
38 |