protected function requiredCommand(ClientInterface $client, $commandID) { if (!$client->getCommandFactory()->supportsCommand($commandID)) { throw new NotSupportedException("'{$commandID}' is not supported by the current command factory."); } }