ILIAS
release_7 Revision v7.30-3-g800a261c036
◀ ilDoc Overview
StorageOnPathWrapper.php
Go to the documentation of this file.
1
<?php
2
3
/* Copyright (c) 2020 Richard Klees <richard.klees@concepts-and-training.de> Extended GPL, see docs/LICENSE */
4
5
namespace
ILIAS\Setup\Metrics
;
6
7
class
StorageOnPathWrapper
implements
Storage
8
{
9
use
StorageConvenience
;
10
14
protected
$path
;
15
19
protected
$other
;
20
21
public
function
__construct
(
string
$path
,
Storage
$other
)
22
{
23
$this->path =
$path
;
24
$this->other =
$other
;
25
}
26
30
public
function
store
(
string
$key,
Metric
$metric) : void
31
{
32
$this->other->store(
"{$this->path}.$key"
, $metric);
33
}
34
}
ILIAS\Setup\Metrics\Storage
Definition:
Storage.php:7
ILIAS\Setup\Metrics\StorageConvenience
trait StorageConvenience
Implements the convenience methods of Storage over Storage::store.
Definition:
StorageConvenience.php:13
ILIAS\Setup\Metrics\StorageOnPathWrapper\store
store(string $key, Metric $metric)
Definition:
StorageOnPathWrapper.php:30
ILIAS\Setup\Metrics\Metric
A metric is something we can measure about the system.
Definition:
Metric.php:17
ILIAS\Setup\Metrics\StorageOnPathWrapper\$other
$other
Definition:
StorageOnPathWrapper.php:19
ILIAS\Setup\Metrics
Definition:
ArrayStorage.php:5
ILIAS\Setup\Metrics\StorageOnPathWrapper
Definition:
StorageOnPathWrapper.php:7
ILIAS\Setup\Metrics\StorageOnPathWrapper\$path
$path
Definition:
StorageOnPathWrapper.php:14
ILIAS\Setup\Metrics\StorageOnPathWrapper\__construct
__construct(string $path, Storage $other)
Definition:
StorageOnPathWrapper.php:21
src
Setup
Metrics
StorageOnPathWrapper.php
Generated on Mon Sep 1 2025 21:01:46 for ILIAS by
1.8.13 (using
Doxyfile
)