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