src/Parser/Doctrine/OrderPartialParser.php
final private static function queryBuilderOrderDirectionToSafeValue(string $orderDirection): string
    {
        $dictionary = [
            'ASC' => 'ASC',
            'DESC' => 'DESC',
        ];

        if (!array_key_exists($orderDirection, $dictionary)) {
            throw new InvalidFieldException($orderDirection);
        }

        return $dictionary[$orderDirection];
    }
final private static function queryBuilderOrderDirectionToSafeValue(string $orderDirection): string
    {
        $dictionary = [
            'ASC' => 'ASC',
            'DESC' => 'DESC',
        ];

        if (!array_key_exists($orderDirection, $dictionary)) {
            throw new InvalidFieldException($orderDirection);
        }

        return $dictionary[$orderDirection];
    }
@param string $orderDirection

@return string