ILIAS  release_8 Revision v8.24
LSGlobalSettings.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
25{
27
29 {
30 $this->polling_interval_seconds = $polling_interval_seconds;
31 }
32
33 public function getPollingIntervalSeconds(): float
34 {
36 }
37
39 {
40 $interval = $this->getPollingIntervalSeconds() * 1000;
41 return (int) $interval;
42 }
43
44 public function withPollingIntervalSeconds(float $seconds): LSGlobalSettings
45 {
46 $clone = clone $this;
47 $clone->polling_interval_seconds = $seconds;
48 return $clone;
49 }
50}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(float $polling_interval_seconds)
withPollingIntervalSeconds(float $seconds)