Skip to content

Commit

Permalink
Re-order args
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeymike authored Feb 7, 2024
1 parent 1712456 commit d3aa9e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Entities/Notification/NotificationDiscount.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ protected function __construct(
public int|null $usageLimit,
public array|null $restrictTo,
public CustomData|null $customData,
public \DateTimeInterface|null $expiresAt,
public ImportMeta|null $importMeta,
public \DateTimeInterface|null $expiresAt,
public \DateTimeInterface $createdAt,
public \DateTimeInterface $updatedAt,
) {
Expand All @@ -61,8 +61,8 @@ public static function from(array $data): self
usageLimit: $data['usage_limit'] ?? null,
restrictTo: $data['restrict_to'] ?? null,
customData: isset($data['custom_data']) ? new CustomData($data['custom_data']) : null,
expiresAt: isset($data['expires_at']) ? DateTime::from($data['expires_at']) : null,
importMeta: isset($data['import_meta']) ? ImportMeta::from($data['import_meta']) : null,
expiresAt: isset($data['expires_at']) ? DateTime::from($data['expires_at']) : null,
createdAt: DateTime::from($data['created_at']),
updatedAt: DateTime::from($data['updated_at']),
);
Expand Down

0 comments on commit d3aa9e7

Please sign in to comment.