ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
NullNodeRepository.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS\Cache\Nodes;
22
27{
28 public function store(Node $node): Node
29 {
30 return $node;
31 }
32
33 public function getNodes(): array
34 {
35 return [];
36 }
37
38 public function create(string $host, int $port, int $weight): Node
39 {
40 return new Node($host, $port, $weight);
41 }
42
43 public function deleteAll(): void
44 {
45 }
46}
create(string $host, int $port, int $weight)