ILIAS  trunk Revision v11.0_alpha-1769-g99a433fe2dc
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
Node.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
26 class Node
27 {
28  public function __construct(
29  private string $host,
30  private int $port,
31  private ?int $weight = null
32  ) {
33  }
34 
35  public function getHost(): string
36  {
37  return $this->host;
38  }
39 
40  public function getPort(): int
41  {
42  return $this->port;
43  }
44 
45  public function getWeight(): ?int
46  {
47  return $this->weight;
48  }
49 }
__construct(private string $host, private int $port, private ?int $weight=null)
Definition: Node.php:28
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null