Passed
Push — master ( 62401f...daf94f )
by Alec
07:24
created

EventsBasicDataProviderOne   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 11
rs 10
c 0
b 0
f 0
wmc 2
1
<?php
2
/**
3
 * User: alec
4
 * Date: 04.11.18
5
 * Time: 13:05
6
 */
7
8
namespace Unit\DataProviders;
9
10
11
class EventsBasicDataProviderOne
12
{
13
    protected static $timestamp = 1514764800;
14
    protected static $step = 15;
15
    protected static $lines = 5760;
16
17
    public static function data(): ?\Generator
18
    {
19
        while (static::$lines-- > 0) {
20
            yield static::$timestamp;
21
            static::$timestamp += static::$step;
22
        }
23
    }
24
}