public function WishlistPurchase::__construct in Commerce Wishlist 8.3
Constructs a new WishlistPurchase object.
Parameters
int $order_id: The order id.
string $quantity: The quantity.
int $purchased: The purchased timestamp.
File
- src/
WishlistPurchase.php, line 41
Class
- WishlistPurchase
- Provides a value object for wishlist purchases.
Namespace
Drupal\commerce_wishlistCode
public function __construct($order_id, $quantity, $purchased) {
$this->orderId = $order_id;
$this->quantity = $quantity;
$this->purchased = $purchased;
}