protected function getCollatedSuggestion($collation = '')
    {
        if (is_string($collation)) {
            return $collation;
        }
        if (is_object($collation)) {
            if (isset($collation->misspellingsAndCorrections)) {
                foreach ($collation->misspellingsAndCorrections as $key => $value) {
                    return $value;
                }
            }
        }
        return '';
    }
protected function getCollatedSuggestion($collation = '')
    {
        if (is_string($collation)) {
            return $collation;
        }
        if (is_object($collation)) {
            if (isset($collation->misspellingsAndCorrections)) {
                foreach ($collation->misspellingsAndCorrections as $key => $value) {
                    return $value;
                }
            }
        }
        return '';
    }
protected function getCollatedSuggestion ( $ collation = '' ) { if ( is_string ( $ collation ) ) { return $ collation ; } if ( is_object ( $ collation ) ) { if ( isset ( $ collation -> misspellingsAndCorrections ) ) { foreach ( $ collation -> misspellingsAndCorrections as $ key => $ value ) { return $ value ; } } } return '' ; }
Extract first suggestion text from collated values

@param mixed $collation
@return string
Extract first suggestion text from collated values