TimeSeriesQueryContext::setSkipEmptyBuckets()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 2
c 0
b 0
f 0
dl 0
loc 5
ccs 3
cts 3
cp 1
rs 10
cc 1
nc 1
nop 1
crap 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
}