-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
replace excludeRunning() with full featured Period filter
- Loading branch information
Daniel Kurowski
committed
Jan 11, 2022
1 parent
4093d10
commit 29df959
Showing
3 changed files
with
67 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php declare(strict_types = 1); | ||
|
||
namespace HnutiBrontosaurus\BisClient\Request\Event; | ||
|
||
use Grifart\Enum\AutoInstances; | ||
use Grifart\Enum\Enum; | ||
|
||
|
||
/** | ||
* @method static Period UNLIMITED() | ||
* @method static Period RUNNING_ONLY() | ||
* @method static Period FUTURE_ONLY() | ||
* @method static Period PAST_ONLY() | ||
* @method static Period RUNNING_AND_FUTURE() | ||
* @method static Period RUNNING_AND_PAST() | ||
*/ | ||
final class Period extends Enum | ||
{ | ||
use AutoInstances; | ||
|
||
protected const UNLIMITED = 'unlimited'; | ||
protected const RUNNING_ONLY = 'runningOnly'; | ||
protected const FUTURE_ONLY = 'futureOnly'; | ||
protected const PAST_ONLY = 'pastOnly'; | ||
protected const RUNNING_AND_FUTURE = 'runningAndFuture'; | ||
protected const RUNNING_AND_PAST = 'runningAndPast'; | ||
} |