AuthenticationData.php
2 years ago
DonateControllerData.php
1 year ago
DonateFormRouteData.php
1 year ago
DonateRouteData.php
2 years ago
DonationConfirmationReceiptViewRouteData.php
1 year ago
DonationFormGoalData.php
1 year ago
DonationFormPreviewRouteData.php
1 year ago
DonationFormQueryData.php
2 years ago
DonationFormViewRouteData.php
1 year ago
LegacyPurchaseFormData.php
2 years ago
UserData.php
2 years ago
ValidationRouteData.php
1 year ago
DonationFormViewRouteData.php
27 lines
| 1 | <?php |
| 2 | |
| 3 | namespace Give\DonationForms\DataTransferObjects; |
| 4 | |
| 5 | /** |
| 6 | * @since 3.0.0 |
| 7 | */ |
| 8 | class DonationFormViewRouteData |
| 9 | { |
| 10 | /** |
| 11 | * @var int |
| 12 | */ |
| 13 | public $formId; |
| 14 | |
| 15 | /** |
| 16 | * @since 3.0.0 |
| 17 | */ |
| 18 | public static function fromRequest(array $request): self |
| 19 | { |
| 20 | $self = new self(); |
| 21 | |
| 22 | $self->formId = (int)$request['form-id']; |
| 23 | |
| 24 | return $self; |
| 25 | } |
| 26 | } |
| 27 |