Skip to content

Commit

Permalink
[API] Change ChangeItemQuantityInCart command methods signatures
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafikooo committed Jul 3, 2023
1 parent aafc207 commit 0ab079e
Showing 1 changed file with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,8 @@ class ChangeItemQuantityInCart implements OrderTokenValueAwareInterface, Subreso
/** @var string|null */
public $orderItemId;

/**
* @psalm-immutable
*
* @var int
*/
public $quantity;

public function __construct(int $quantity)
public function __construct(public ?int $quantity)
{
$this->quantity = $quantity;
}

public static function createFromData(string $tokenValue, string $orderItemId, int $quantity): self
Expand Down

0 comments on commit 0ab079e

Please sign in to comment.