path = $path; $this->contents = $contents; $this->flags = $flags; } public function onRun(){ try{ file_put_contents($this->path, $this->contents, $this->flags); }catch(\Throwable $e){ } } }