Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
agent.php
1<?php
2
4
7
13final class Agent extends Analytics\Agent
14{
18 protected static function getProviderCode(): string
19 {
20 return Provider::getCode();
21 }
22
26 protected static function getSuccessNextExecutionAgentDate(): DateTime
27 {
28 return static::toBitrixDate(
29 (new \DateTime())
30 ->modify('first day of next month')
31 ->setTime(6, 0)
32 );
33 }
34
38 protected static function getDateFrom(): DateTime
39 {
40 return static::toBitrixDate(
41 (new \DateTime())->modify('first day of last month midnight')
42 );
43 }
44
48 protected static function getDateTo(): DateTime
49 {
50 return static::toBitrixDate(
51 (new \DateTime())->modify('first day of this month midnight')
52 );
53 }
54
58 protected static function onSuccessfullySent(): void
59 {
60 }
61}