Total Complexity | 3 |
Total Lines | 15 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
11 | class EventsBasicDataProviderTwo |
||
12 | { |
||
13 | protected static $timestamp = 1514764800; |
||
14 | protected static $step = 1; |
||
15 | protected static $lines = 140; |
||
16 | |||
17 | public static function data(): ?\Generator |
||
18 | { |
||
19 | $number = 1; |
||
20 | while (static::$lines-- > 0) { |
||
21 | yield static::$timestamp; |
||
22 | if ($number % 2 === 0) { |
||
23 | static::$timestamp += static::$step; |
||
24 | } |
||
25 | $number++; |
||
26 | } |
||
28 | } |