Daniel J. Summers
d067f8983f
- Add In/InArray support - Add ORDER BY support for `Find` functions - Update dependencies - Implement fixes identified via static analysis Reviewed-on: #5
36 lines
826 B
PHP
36 lines
826 B
PHP
<?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'])
|
|
];
|
|
}
|
|
}
|