38 lines
733 B
PHP
38 lines
733 B
PHP
<?php
|
|
|
|
namespace KupShop\WarehouseBundle\Event;
|
|
|
|
use KupShop\WarehouseBundle\Entity\StoreItem;
|
|
use Symfony\Contracts\EventDispatcher\Event;
|
|
|
|
class WarehouseProductMoveEvent extends Event
|
|
{
|
|
public function __construct(
|
|
protected StoreItem $storeItem,
|
|
protected int $pieces,
|
|
protected int $oldPosition,
|
|
protected int $newPosition,
|
|
) {
|
|
}
|
|
|
|
public function getStoreItem(): StoreItem
|
|
{
|
|
return $this->storeItem;
|
|
}
|
|
|
|
public function getOldPosition(): int
|
|
{
|
|
return $this->oldPosition;
|
|
}
|
|
|
|
public function getNewPosition(): int
|
|
{
|
|
return $this->newPosition;
|
|
}
|
|
|
|
public function getPieces(): int
|
|
{
|
|
return $this->pieces;
|
|
}
|
|
}
|