Total Complexity | 3 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 1 | Features | 1 |
1 | <?php |
||
16 | class SchematorFactory |
||
17 | { |
||
18 | /** |
||
19 | * Creates new Schemator instance with default config. |
||
20 | * |
||
21 | * @return SchematorInterface |
||
22 | */ |
||
23 | public static function create(): SchematorInterface |
||
24 | { |
||
25 | return static::createBuilder() |
||
26 | ->withFilters(new BaseFiltersStorage()) |
||
27 | ->get(); |
||
28 | } |
||
29 | |||
30 | /** |
||
31 | * Creates SchematorBuilder instance. |
||
32 | * |
||
33 | * @return SchematorBuilderInterface |
||
34 | */ |
||
35 | public static function createBuilder(): SchematorBuilderInterface |
||
38 | } |
||
39 | |||
40 | /** |
||
41 | * Creates new MassSchemator instance with default config. |
||
42 | * |
||
43 | * @return MassSchematorInterface |
||
44 | */ |
||
45 | public static function createMass(): MassSchematorInterface |
||
50 |