Passed
Branch feature/v2 (61dd95)
by Valentin
05:53
created

AbstractRange::getInterval()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace Spiral\Statistics\Extract\Range;
4
5
use Spiral\Statistics\Extract\RangeInterface;
6
7
abstract class AbstractRange implements RangeInterface
8
{
9
    /**
10
     * {@inheritdoc}
11
     */
12
    public function getInterval(): \DateInterval
13
    {
14
        return new \DateInterval(static::INTERVAL);
15
    }
16
17
    /**
18
     * {@inheritdoc}
19
     */
20
    public function getFormat(): string
21
    {
22
        return static::FORMAT;
23
    }
24
25
    /**
26
     * {@inheritdoc}
27
     */
28
    public function getRange(): string
29
    {
30
        return static::RANGE;
31
    }
32
}