rabobankFixEmptyOpposing(); return $this->data; } /** * @param array $data */ public function setData($data) { $this->data = $data; } /** * @param array $row */ public function setRow($row) { $this->row = $row; } /** * Fixes Rabobank specific thing. */ protected function rabobankFixEmptyOpposing() { Log::debug('RaboSpecifix: Opposing account name is "******".'); if (is_string($this->data['opposing-account-name']) && strlen($this->data['opposing-account-name']) == 0) { Log::debug('RaboSpecifix: opp-name is zero length, changed to: "******"'); $this->data['opposing-account-name'] = $this->row[10]; Log::debug('Description was: "******".'); $this->data['description'] = trim(str_replace($this->row[10], '', $this->data['description'])); Log::debug('Description is now: "******".'); } } }