private function createOperations(array $methods) : array { $operations = []; foreach ($methods as $method) { $operations[strtolower($method)] = ['method' => $method]; } return $operations; }