From 49924e0ef37e0645281219b495a82933defa3fd8 Mon Sep 17 00:00:00 2001 From: Lars Klopstra Date: Wed, 8 Mar 2023 17:21:41 +0100 Subject: [PATCH] fix: setter for alias --- src/Trend.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Trend.php b/src/Trend.php index af53ce3..c64469a 100755 --- a/src/Trend.php +++ b/src/Trend.php @@ -84,6 +84,13 @@ public function dateColumn(string $column): self return $this; } + public function dateAlias(string $alias): self + { + $this->dateAlias = $alias; + + return $this; + } + public function aggregate(string $column, string $aggregate): Collection { $values = $this->builder