Skip to content

Commit

Permalink
Allow setting up target in builder
Browse files Browse the repository at this point in the history
  • Loading branch information
juniwalk authored Feb 13, 2024
1 parent a29bfd4 commit 38e4298
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/RecordBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 38e4298

Please sign in to comment.