diff --git a/src/Enum/Status.php b/src/Enum/Status.php index 8ecd512..8860f62 100644 --- a/src/Enum/Status.php +++ b/src/Enum/Status.php @@ -26,6 +26,11 @@ public function equals(Status $status): bool return $this === $status; } + public function isNext(Status $status): bool + { + return $this->next() === $status; + } + public function next(): self { return match ($this) {