diff --git a/src/RecordBuilder.php b/src/RecordBuilder.php index ee46605..6b14e8f 100644 --- a/src/RecordBuilder.php +++ b/src/RecordBuilder.php @@ -88,6 +88,13 @@ public function withEvent(?string $event): static } + public function withTarget(object $target): static + { + $this->record['target'] = $target; + return $this; + } + + public function withDate(DateTimeInterface $date): static { $this->record['date'] = $date;