| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 2 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 3 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | 11 | public function __construct( |
|
| 22 | string|Granularity $segmentGranularity, |
||
| 23 | string|Granularity $queryGranularity, |
||
| 24 | bool $rollup, |
||
| 25 | IntervalCollection $intervals |
||
| 26 | ) { |
||
| 27 | 11 | parent::__construct($queryGranularity, $rollup, $intervals); |
|
| 28 | |||
| 29 | 10 | $this->segmentGranularity = is_string($segmentGranularity) ? Granularity::from(strtolower($segmentGranularity)) : $segmentGranularity; |
|
| 30 | } |
||
| 47 | } |