public function __construct($path) { if (!file_exists($path)) { file_put_contents($path, ''); } $this->path = $path; $this->previous = file_get_contents($path); }