Skip to content

Commit

Permalink
Set default values in GeneralSettingsRequest constructor for new attr…
Browse files Browse the repository at this point in the history
…ibutes
  • Loading branch information
Michel Escalante Álvarez authored and m1k3lm committed Jun 12, 2024
1 parent 766ef62 commit 2d0854c
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,21 +63,21 @@ class GeneralSettingsRequest extends Request
* @param string[]|null $allowedIPAddresses
* @param string[]|null $excludedProducts
* @param string[]|null $excludedCategories
* @param bool $enabledForServices
* @param bool $allowFirstServicePaymentDelay
* @param bool $allowServiceRegItems
* @param string $defaultServicesEndDate
* @param bool $enabledForServices Default value is false
* @param bool $allowFirstServicePaymentDelay Default value is true
* @param bool $allowServiceRegItems Default value is true
* @param string $defaultServicesEndDate Default value is 'P1Y'
*/
public function __construct(
bool $sendOrderReportsPeriodicallyToSeQura,
?bool $showSeQuraCheckoutAsHostedPage,
?array $allowedIPAddresses,
?array $excludedProducts,
?array $excludedCategories,
bool $enabledForServices,
bool $allowFirstServicePaymentDelay,
bool $allowServiceRegItems,
string $defaultServicesEndDate
bool $enabledForServices = false,
bool $allowFirstServicePaymentDelay = true,
bool $allowServiceRegItems = true,
string $defaultServicesEndDate = 'P1Y'
) {
$this->sendOrderReportsPeriodicallyToSeQura = $sendOrderReportsPeriodicallyToSeQura;
$this->showSeQuraCheckoutAsHostedPage = $showSeQuraCheckoutAsHostedPage;
Expand Down

0 comments on commit 2d0854c

Please sign in to comment.