Total Complexity | 5 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
9 | abstract class AttachableGeneratorAbstract implements GeneratorInterface |
||
10 | { |
||
11 | /** |
||
12 | * @var \Er1z\FakeMock\Generator\AssertGenerator\GeneratorInterface[] |
||
13 | */ |
||
14 | protected $generators; |
||
15 | |||
16 | /** |
||
17 | * @var Registry |
||
18 | */ |
||
19 | protected $fakerRegistry; |
||
20 | |||
21 | 105 | public function __construct(?Registry $registry = null) |
|
22 | { |
||
23 | 105 | $this->fakerRegistry = $registry ?: new Registry(); |
|
24 | 105 | } |
|
25 | |||
26 | abstract public function generateForProperty( |
||
27 | FieldMetadata $field, FakeMock $fakemock, ?string $group = null |
||
28 | ); |
||
29 | |||
30 | abstract protected function getGeneratorFqcn($simpleClassName); |
||
31 | |||
32 | 27 | protected function getGenerator($assertClass) |
|
40 | } |
||
41 | } |
||
42 |