Skip to content

Commit

Permalink
Add return types
Browse files Browse the repository at this point in the history
  • Loading branch information
aerni committed Sep 11, 2024
1 parent b7ca659 commit d985659
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Factories/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -211,22 +211,22 @@ public function state(mixed $state): self
]);
}

public function set($key, $value)
public function set($key, $value): self
{
return $this->state([$key => $value]);
}

public function sequence(...$sequence)
public function sequence(...$sequence): self
{
return $this->state(new Sequence(...$sequence));
}

public function forEachSequence(...$sequence)
public function forEachSequence(...$sequence): self
{
return $this->state(new Sequence(...$sequence))->count(count($sequence));
}

public function crossJoinSequence(...$sequence)
public function crossJoinSequence(...$sequence): self
{
return $this->state(new CrossJoinSequence(...$sequence));
}
Expand Down

0 comments on commit d985659

Please sign in to comment.