10 private static $instance;
11 private static $jobOn =
false;
12 private static $hitId;
17 private function __construct()
19 self::$hitId = $this->generateHid();
30 self::$instance =
new self();
33 return self::$instance;
69 $this->getEventCollection()->push(
$event);
72 private function enableJob(): void
81 [self::class,
'proceedEvents'],
83 Application::JOB_PRIORITY_LOW - 2,
92 private function getEventCollection(): EventCollection
100 private function generateHid(): string
102 return sha1(microtime(
true) . mt_rand(10000, 99999));