| 1 | <?php |
||
| 13 | abstract class InfluxDbEvent extends Event |
||
| 14 | { |
||
| 15 | const NAME = 'influxdb.points_collected'; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var Point[] |
||
| 19 | */ |
||
| 20 | protected $points; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var string |
||
| 24 | */ |
||
| 25 | protected $precision; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @param Point[] $points |
||
| 29 | * @param string $precision |
||
| 30 | */ |
||
| 31 | 5 | public function __construct(array $points, string $precision) |
|
| 36 | |||
| 37 | /** |
||
| 38 | * @return Point[] |
||
| 39 | */ |
||
| 40 | 5 | final public function getPoints(): array |
|
| 44 | |||
| 45 | /** |
||
| 46 | * @return string |
||
| 47 | */ |
||
| 48 | 5 | final public function getPrecision() |
|
| 52 | } |
||
| 53 |