<?php
/**
 * @author Daniel J. Summers <daniel@bitbadger.solutions>
 * @license MIT
 */

declare(strict_types=1);

namespace Test\Integration;

/**
 * A document with an array of values
 */
class ArrayDocument
{
    /**
     * @param string $id The ID of the document
     * @param string[] $values The values for the document
     */
    public function __construct(public string $id = '', public array $values = []) { }

    /**
     * A set of documents used for integration tests
     *
     * @return ArrayDocument[] Test documents for InArray tests
     */
    public static function testDocuments(): array
    {
        return [
            new ArrayDocument('first', ['a', 'b', 'c']),
            new ArrayDocument('second', ['c', 'd', 'e']),
            new ArrayDocument('third', ['x', 'y', 'z'])
        ];
    }
}