19declare(strict_types=1);
46 public static function isGenerated(
string $generated_fqcn): bool
48 return isset(self::$builders[$generated_fqcn]);
55 public static function register(
56 string $generated_fqcn,
61 self::$builders[$generated_fqcn] = $builder;
68 public static function returnTypeFor(
string $generated_fqcn,
string $method): ?array
70 return self::$return_types[$generated_fqcn][$method] ??
null;
78 $builder = self::$builders[$mock::class] ??
null;
80 if ($builder ===
null) {
85 return $builder->defaultValueFor($mock, $method);
Bookkeeping about the mock classes that have been generated into the running process.
static array $return_types
static isGenerated(string $generated_fqcn)
static returnTypeFor(string $generated_fqcn, string $method)
static defaultValueFor(object $mock, string $method)
Entry point for the generated mocks themselves, see {.