Google\Cloud\Tests\Translate\TranslateClientTest::getDetectionExpectedData PHP Method

getDetectionExpectedData() private method

private getDetectionExpectedData ( $textToDetect, $detectedLanguage, $confidence = null )
    private function getDetectionExpectedData($textToDetect, $detectedLanguage, $confidence = null)
    {
        return array_filter(['input' => $textToDetect, 'languageCode' => $detectedLanguage, 'confidence' => $confidence]);
    }