Skip to content

Commit

Permalink
Add ToggleStrategies::isEmpty
Browse files Browse the repository at this point in the history
  • Loading branch information
szepeviktor authored and kpicaza committed Aug 27, 2022
1 parent ab91590 commit 22d39b1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Read/ToggleStrategies.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ public function count(): int
return count($this->strategies);
}

public function isEmpty(): bool
{
return $this->strategies === [];
}

/** @return Generator<ToggleStrategy> */
public function getIterator(): Generator
{
Expand Down

0 comments on commit 22d39b1

Please sign in to comment.