| 1 | <?php declare(strict_types=1); |
||
| 17 | class UpdateStats |
||
| 18 | { |
||
| 19 | |||
| 20 | private $intervals; |
||
| 21 | |||
| 22 | 1 | public function __construct(FeedInterface $feed) |
|
| 26 | |||
| 27 | /** |
||
| 28 | * @return array |
||
| 29 | */ |
||
| 30 | 1 | public function getIntervals(): array |
|
| 34 | |||
| 35 | 1 | public function getMinInterval(): \DateInterval |
|
| 40 | |||
| 41 | 1 | private function computeIntervals(array $dates): array |
|
| 54 | |||
| 55 | 1 | private function extractDates(FeedInterface $feed): array |
|
| 63 | |||
| 64 | 1 | private function getTimestamp(ItemInterface $item): ? int |
|
| 68 | } |