Forces double to extend specific class.
@template U of object @phpstan-param class-string<U> $class @phpstan-this-out static<T&U>
string $class:
$this
public function willExtend($class) { $this->lazyDouble ->setParentClass($class); return $this; }