| 1 | <?php |
||
| 10 | class Period |
||
| 11 | { |
||
| 12 | /** @var \DateTime */ |
||
| 13 | public $startDate; |
||
| 14 | |||
| 15 | /** @var \DateTime */ |
||
| 16 | public $endDate; |
||
| 17 | |||
| 18 | public static function create(DateTime $startDate, $endDate): Period |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @param int $numberOfDays |
||
| 25 | * @return Period |
||
| 26 | * |
||
| 27 | * Modified to match Google Search Console delay in data (3 Days) and PDT timezone |
||
| 28 | */ |
||
| 29 | public static function days(int $numberOfDays): Period |
||
| 37 | |||
| 38 | public function __construct(DateTime $startDate, DateTime $endDate) |
||
| 48 | } |