/** * Returns the PUT response * * @param \PSX\Record\RecordInterface $record * @return array|\PSX\Record\RecordInterface */ protected function doPut($record) { $this->rateService->update((int) $this->getUriFragment('rate_id'), $record->priority, $record->name, $record->rateLimit, $record->timespan, $record->allocation); return array('success' => true, 'message' => 'Rate successful updated'); }