DonorRoute.php
23 lines
| 1 | <?php |
| 2 | |
| 3 | namespace Give\API\REST\V3\Routes\Donors\ValueObjects; |
| 4 | |
| 5 | use Give\Framework\Support\ValueObjects\Enum; |
| 6 | |
| 7 | /** |
| 8 | * @since 4.0.0 |
| 9 | * |
| 10 | * @method static DonorRoute NAMESPACE() |
| 11 | * @method static DonorRoute DONOR() |
| 12 | * @method static DonorRoute DONORS() |
| 13 | * @method bool isNamespace() |
| 14 | * @method bool isDonor() |
| 15 | * @method bool isDonors() |
| 16 | */ |
| 17 | class DonorRoute extends Enum |
| 18 | { |
| 19 | const NAMESPACE = 'givewp/v3'; |
| 20 | const DONOR = 'donors/(?P<id>[0-9]+)'; |
| 21 | const DONORS = 'donors'; |
| 22 | } |
| 23 |