TimeSeriesQueryContext   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
eloc 3
c 0
b 0
f 0
dl 0
loc 16
ccs 3
cts 3
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A setSkipEmptyBuckets() 0 5 1
1
<?php
2
declare(strict_types=1);
3
4
namespace Level23\Druid\Context;
5
6
class TimeSeriesQueryContext extends QueryContext implements ContextInterface
7
{
8
    /**
9
     * Disable timeseries zero-filling behavior, so only buckets with results will be returned.
10
     *
11
     * Default: false
12
     *
13
     * @param bool $skipEmptyBuckets
14
     *
15
     * @return $this
16
     */
17 8
    public function setSkipEmptyBuckets(bool $skipEmptyBuckets): self
18
    {
19 8
        $this->properties['skipEmptyBuckets'] = $skipEmptyBuckets;
20
21 8
        return $this;
22
    }
23
}