/** * Returns the POST response * * @param \PSX\Record\RecordInterface $record * @return array|\PSX\Record\RecordInterface */ protected function doPost($record) { $this->rateService->create($record->priority, $record->name, $record->rateLimit, $record->timespan, $record->allocation); return array('success' => true, 'message' => 'Rate successful created'); }