Initial commit
This commit is contained in:
35
src/Model/Range.php
Normal file
35
src/Model/Range.php
Normal 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user