• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

bonu-dev / php-elasticsearch-builder / 20213119249

14 Dec 2025 07:37PM UTC coverage: 95.517% (-4.5%) from 100.0%
20213119249

Pull #11

github

web-flow
Merge f36fbad46 into 8f8f82b43
Pull Request #11: feat: Add range query

29 of 42 new or added lines in 3 files covered. (69.05%)

277 of 290 relevant lines covered (95.52%)

8.67 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/Query/NumericRangeQuery.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace Bonu\ElasticsearchBuilder\Query;
6

7
/**
8
 * @see https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-range-query
9
 */
10
class NumericRangeQuery extends RangeQuery
11
{
12
    /**
13
     * @param string|\Stringable $field
14
     * @param null|float|int $lt
15
     * @param null|float|int $lte
16
     * @param null|float|int $gt
17
     * @param null|float|int $gte
18
     * @param null|self::RELATION_* $relation
19
     *
20
     * @throws \Bonu\ElasticsearchBuilder\Exception\Query\InvalidRelationQueryException
21
     */
NEW
22
    public function __construct(
×
23
        string | \Stringable $field,
24
        null | int | float $lt = null,
25
        null | int | float $lte = null,
26
        null | int | float $gt = null,
27
        null | int | float $gte = null,
28
        ?string $relation = self::RELATION_INTERSECTS,
29
    ) {
NEW
30
        parent::__construct($field, $lt, $lte, $gt, $gte, relation: $relation);
×
31
    }
32
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc