$buildArgs The arguments passed to the constructor in the order they are provided. * @param string[]|null $afterBuildMethods An array of methods that should be called after the instance is resolved. * @param mixed $id */ public function instance($id, array $buildArgs = [], ?array $afterBuildMethods = null): Closure; /** * @param class-string|string|object $id */ public function callback($id, string $method): callable; }