<?php

// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.

namespace Algolia\AlgoliaSearch\Model\Composition;

/**
 * ExternalOrdering Class Doc Comment.
 *
 * @category Class
 *
 * @description Ordering to apply on the injected items coming from the external source. 'default' means the items will be ordered as they are in the index (natural relevance) in the smart group. 'userDefined' means the order in which the objectIDs are provided in the run request payload will be preserved in the smart group.
 */
class ExternalOrdering
{
    /**
     * Possible values of this enum.
     */
    public const _DEFAULT = 'default';

    public const USER_DEFINED = 'userDefined';

    /**
     * Gets allowable values of the enum.
     *
     * @return string[]
     */
    public static function getAllowableEnumValues()
    {
        return [
            self::_DEFAULT,
            self::USER_DEFINED,
        ];
    }
}
