AuthenticationData.php
2 years ago
DonateControllerData.php
2 years ago
DonateFormRouteData.php
2 years ago
DonateRouteData.php
2 years ago
DonationConfirmationReceiptViewRouteData.php
2 years ago
DonationFormGoalData.php
2 years ago
DonationFormPreviewRouteData.php
2 years ago
DonationFormQueryData.php
2 years ago
DonationFormViewRouteData.php
2 years ago
LegacyPurchaseFormData.php
2 years ago
UserData.php
2 years ago
ValidationRouteData.php
2 years ago
DonationFormViewRouteData.php
28 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 | * |
| 17 | * @since 3.0.0 |
| 18 | */ |
| 19 | public static function fromRequest(array $request): self |
| 20 | { |
| 21 | $self = new self(); |
| 22 | |
| 23 | $self->formId = (int)$request['form-id']; |
| 24 | |
| 25 | return $self; |
| 26 | } |
| 27 | } |
| 28 |