SubscriptionPeriod.php
29 lines
| 1 | <?php |
| 2 | |
| 3 | namespace Give\Subscriptions\ValueObjects; |
| 4 | |
| 5 | |
| 6 | use Give\Framework\Support\ValueObjects\Enum; |
| 7 | |
| 8 | /** |
| 9 | * @since 2.19.6 |
| 10 | * |
| 11 | * @method static SubscriptionPeriod DAY() |
| 12 | * @method static SubscriptionPeriod WEEK() |
| 13 | * @method static SubscriptionPeriod MONTH() |
| 14 | * @method static SubscriptionPeriod QUARTER() |
| 15 | * @method static SubscriptionPeriod YEAR() |
| 16 | * @method bool isDay |
| 17 | * @method bool isWeek |
| 18 | * @method bool isMonth |
| 19 | * @method bool isQuarter |
| 20 | * @method bool isYear |
| 21 | */ |
| 22 | class SubscriptionPeriod extends Enum { |
| 23 | const DAY = 'day'; |
| 24 | const WEEK = 'week'; |
| 25 | const QUARTER = 'quarter'; |
| 26 | const MONTH = 'month'; |
| 27 | const YEAR = 'year'; |
| 28 | } |
| 29 |