Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
1 | <?php |
2 | namespace Apie\Faker\Interfaces; |
3 | |
4 | use Faker\Generator; |
5 | use ReflectionClass; |
6 | |
7 | /** |
8 | * @template T of object |
9 | */ |
10 | interface ApieClassFaker |
11 | { |
12 | /** |
13 | * @param ReflectionClass<object> $class |
14 | */ |
15 | public function supports(ReflectionClass $class): bool; |
16 | /** |
17 | * @param ReflectionClass<T> $class |
18 | * @return T |
19 | */ |
20 | public function fakeFor(Generator $generator, ReflectionClass $class): mixed; |
21 | } |