Skip to content

Commit

Permalink
Rename variable
Browse files Browse the repository at this point in the history
  • Loading branch information
LucaGallinari committed Jul 12, 2024
1 parent 5570b62 commit 9306e91
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
final class ProductVariantDocumentParserEvent extends Event
{
/**
* @param array{sylius-id: int|string, code: ?string, enabled: ?bool, position: int, price: array{price: ?int, original-price: ?int, applied-promotions: array}, options: array, on-hand: ?int, on-hold: ?int, is-tracked: bool} $esProductImage
* @param array{sylius-id: int|string, code: ?string, enabled: ?bool, position: int, price: array{price: ?int, original-price: ?int, applied-promotions: array}, options: array, on-hand: ?int, on-hold: ?int, is-tracked: bool} $esVariant
*/
public function __construct(
private readonly array $esProductImage,
private readonly array $esVariant,
private ProductVariantInterface $productVariant,
private ProductInterface $product,
) {
Expand All @@ -23,9 +23,9 @@ public function __construct(
/**
* @return array{sylius-id: int|string, code: ?string, enabled: ?bool, position: int, price: array{price: ?int, original-price: ?int, applied-promotions: array}, options: array, on-hand: ?int, on-hold: ?int, is-tracked: bool}
*/
public function getEsProductImage(): array
public function getEsVariant(): array
{
return $this->esProductImage;
return $this->esVariant;
}

public function getProductVariant(): ProductVariantInterface
Expand Down

0 comments on commit 9306e91

Please sign in to comment.