getHttpClient()->request('PUT', 'server/power', [ 'json' => [ 'action' => $signal, ], ]); default: throw new InvalidPowerSignalException('The signal "' . $signal . '" is not defined and could not be processed.'); } } }