Total Complexity | 7 |
Total Lines | 59 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | class SchematorBuilder implements SchematorBuilderInterface |
||
17 | { |
||
18 | /** |
||
19 | * @var Schemator Schemator object |
||
20 | */ |
||
21 | protected SchematorInterface $schemator; |
||
22 | |||
23 | /** |
||
24 | * SchematorBuilder constructor. |
||
25 | */ |
||
26 | public function __construct() |
||
27 | { |
||
28 | $this->create(); |
||
29 | } |
||
30 | |||
31 | /** |
||
32 | * @inheritDoc |
||
33 | */ |
||
34 | public function create(): SchematorBuilder |
||
35 | { |
||
36 | $this->schemator = new Schemator(); |
||
37 | return $this; |
||
38 | } |
||
39 | |||
40 | /** |
||
41 | * @inheritDoc |
||
42 | */ |
||
43 | public function withPathDelimiter(string $pathDelimiter): SchematorBuilder |
||
44 | { |
||
45 | $this->schemator->setPathDelimiter($pathDelimiter); |
||
46 | return $this; |
||
47 | } |
||
48 | |||
49 | /** |
||
50 | * @inheritDoc |
||
51 | */ |
||
52 | public function withErrorsLevelMask(BitmapInterface $errorsLevelMask): SchematorBuilder |
||
56 | } |
||
57 | |||
58 | /** |
||
59 | * @inheritDoc |
||
60 | */ |
||
61 | public function withFilters(iterable $filters): SchematorBuilder |
||
67 | } |
||
68 | |||
69 | /** |
||
70 | * @inheritDoc |
||
71 | */ |
||
72 | public function get(): Schemator |
||
75 | } |
||
76 | } |
||
77 |