ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
LSGlobalSettings.php
Go to the documentation of this file.
1 <?php declare(strict_types=1);
2 
7 {
12 
13  public function __construct(float $polling_interval_seconds)
14  {
15  $this->polling_interval_seconds = $polling_interval_seconds;
16  }
17 
18  public function getPollingIntervalSeconds() : float
19  {
21  }
22 
23  public function getPollingIntervalMilliseconds() : int
24  {
25  $interval = $this->getPollingIntervalSeconds() * 1000;
26  return (int) $interval;
27  }
28 
29  public function withPollingIntervalSeconds(float $seconds) : LSGlobalSettings
30  {
31  $clone = clone $this;
32  $clone->polling_interval_seconds = $seconds;
33  return $clone;
34  }
35 }
Global Settings of the Learning Sequence.
__construct(float $polling_interval_seconds)
withPollingIntervalSeconds(float $seconds)