private function buildErrorReportingArgument(Configuration $configuration) { if ($configuration->getMsvcErrorReport()) { switch ($configuration->getMsvcErrorReport()) { case 'none': return '/ERRORREPORT:NONE'; case 'prompt': return '/ERRORREPORT:PROMPT'; case 'queue': return '/ERRORREPORT:QUEUE'; case 'send': return '/ERRORREPORT:SEND'; default: throw new RuntimeException('Invalid msvcErrorReport provided.'); } } return ''; }