| Total Complexity | 1 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 7 | abstract class AbstractFakerDataProvider implements FakerDataProviderInterface |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var Generator |
||
| 11 | */ |
||
| 12 | protected $generator; |
||
| 13 | |||
| 14 | 22 | public function __construct(Generator $generator) |
|
| 17 | 22 | } |
|
| 18 | |||
| 19 | /** |
||
| 20 | * This magic method means that the object is callable like a closure, |
||
| 21 | * and when that happens this invoke method is called. |
||
| 22 | * |
||
| 23 | * This method should return your fake data. You can use the generator to pull fake data from if that is useful |
||
| 24 | * |
||
| 25 | * @return mixed |
||
| 26 | */ |
||
| 27 | abstract public function __invoke(); |
||
| 28 | } |
||
| 29 |