public function __construct($type, $error, $file, $line = -1) { $this->type = $type; $this->error = $error; $this->file = $file; $this->line = $line; }