public function __construct($file, $time, $pid) { $this->file = $file; $this->fp = fopen($file, 'w'); $this->time = $time; $this->pid = $pid; }