ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
Node.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
26class 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