38 lines
710 B
PHP
38 lines
710 B
PHP
<?php
|
|
|
|
namespace KupShop\WarehouseBundle\Event;
|
|
|
|
use Symfony\Contracts\EventDispatcher\Event;
|
|
|
|
class WarehouseOrderEvent extends Event
|
|
{
|
|
public const STORNO_ORDER = 'kupshop.warehouse.storno_order';
|
|
|
|
protected $returnPosition = 'VRATKY';
|
|
|
|
/**
|
|
* @var \Order
|
|
*/
|
|
protected $order;
|
|
|
|
public function getReturnPosition(): string
|
|
{
|
|
return $this->returnPosition;
|
|
}
|
|
|
|
public function setReturnPosition(string $returnPosition): void
|
|
{
|
|
$this->returnPosition = $returnPosition;
|
|
}
|
|
|
|
public function getOrder(): \Order
|
|
{
|
|
return $this->order;
|
|
}
|
|
|
|
public function setOrder(\Order $order): void
|
|
{
|
|
$this->order = $order;
|
|
}
|
|
}
|