ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
StorageOnPathWrapper.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS\Setup\Metrics;
22
24{
26
27 protected string $path;
28 protected Storage $other;
29
30 public function __construct(string $path, Storage $other)
31 {
32 $this->path = $path;
33 $this->other = $other;
34 }
35
39 public function store(string $key, Metric $metric): void
40 {
41 $this->other->store("$this->path.$key", $metric);
42 }
43}
A metric is something we can measure about the system.
Definition: Metric.php:34
store(string $key, Metric $metric)
@inheritdocs
__construct(string $path, Storage $other)
trait StorageConvenience
Implements the convenience methods of Storage over Storage::store.