<?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\Search;

/**
 * Anchoring Class Doc Comment.
 *
 * @category Class
 *
 * @description Which part of the search query the pattern should match:  - `startsWith`. The pattern must match the beginning of the query. - `endsWith`. The pattern must match the end of the query. - `is`. The pattern must match the query exactly. - `contains`. The pattern must match anywhere in the query.  Empty queries are only allowed as patterns with `anchoring: is`.
 */
class Anchoring
{
    /**
     * Possible values of this enum.
     */
    public const IS = 'is';

    public const STARTS_WITH = 'startsWith';

    public const ENDS_WITH = 'endsWith';

    public const CONTAINS = 'contains';

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