CampaignGoalType.php
1 year ago
CampaignPageMetaKeys.php
1 year ago
CampaignPageStatus.php
5 months ago
CampaignStatus.php
1 year ago
CampaignType.php
1 year ago
CampaignPageStatus.php
41 lines
| 1 | <?php |
| 2 | |
| 3 | namespace Give\Campaigns\ValueObjects; |
| 4 | |
| 5 | use Give\Framework\Support\ValueObjects\Enum; |
| 6 | |
| 7 | /** |
| 8 | * @since 4.14.0 add missing PENDING status |
| 9 | * @since 4.0.0 |
| 10 | * |
| 11 | * Statuses aligned with WordPress Custom Post Type options. |
| 12 | * |
| 13 | * @method static CampaignPageStatus PUBLISH() |
| 14 | * @method static CampaignPageStatus FUTURE() |
| 15 | * @method static CampaignPageStatus PRIVATE() |
| 16 | * @method static CampaignPageStatus PENDING() |
| 17 | * @method static CampaignPageStatus DRAFT() |
| 18 | * @method static CampaignPageStatus TRASH() |
| 19 | * @method static CampaignPageStatus AUTO_DRAFT() |
| 20 | * @method static CampaignPageStatus INHERIT() |
| 21 | * @method bool isPublish() |
| 22 | * @method bool isFuture() |
| 23 | * @method bool isPrivate() |
| 24 | * @method bool isPending() |
| 25 | * @method bool isDraft() |
| 26 | * @method bool isTrash() |
| 27 | * @method bool isAutoDraft() |
| 28 | * @method bool isInherit() |
| 29 | */ |
| 30 | class CampaignPageStatus extends Enum |
| 31 | { |
| 32 | public const PUBLISH = 'publish'; |
| 33 | public const FUTURE = 'future'; |
| 34 | public const PRIVATE = 'private'; |
| 35 | public const PENDING = 'pending'; |
| 36 | public const DRAFT = 'draft'; |
| 37 | public const TRASH = 'trash'; |
| 38 | public const AUTO_DRAFT = 'auto-draft'; |
| 39 | public const INHERIT = 'inherit'; |
| 40 | } |
| 41 |