ILIAS  release_8 Revision v8.24
StorageOnPathWrapper.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
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)
string $key
Consumer key/client ID value.
Definition: System.php:193
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
trait StorageConvenience
Implements the convenience methods of Storage over Storage::store.