Вот есть класс(привожу частично)
PHP:
скопировать код в буфер обмена
скопировать код в буфер обмена
- class CartEntityAddEvent
- ----
- public function __construct(OrderInterface $cart, PurchasableEntityInterface $entity, $quantity, OrderItemInterface $order_item) {
- $this->cart = $cart;
- $this->entity = $entity;
- $this->quantity = $quantity;
- $this->orderItem = $order_item;
- }
- -------
- public function getEntity() {
- return $this->entity;
- }