records = $records; $this->error = $error; } public function getRecords() : array { return $this->records; } public function withError() : bool { return $this->error; } }