Sets a file to require before creating the service.
$this
public function setFile(?string $file) : static { $this->changes['file'] = true; $this->file = $file; return $this; }