private function normaliseAutoSettle(PaymentRequest $request) { $autoSettle = $request->getAutoSettle(); if (is_null($autoSettle) || is_null($autoSettle->getFlag())) { return array(); } return array('@flag' => $autoSettle->getFlag()); }