Initial commit

This commit is contained in:
2020-12-28 23:32:37 +01:00
commit 66b18a024d
56 changed files with 3881 additions and 0 deletions

35
src/Model/Range.php Normal file
View File

@@ -0,0 +1,35 @@
<?php
namespace Toalett\Redis\Timeseries\Model;
final class Range
{
private string $key;
private array $labels;
private array $values;
public function __construct(string $key, array $labels, array $values)
{
$this->key = $key;
$this->labels = $labels;
$this->values = $values;
}
public function getKey(): string
{
return $this->key;
}
public function getLabels(): array
{
return $this->labels;
}
/**
* @return Value[]
*/
public function getValues(): array
{
return $this->values;
}
}