<?php

namespace KupShop\ReturnsBundle\Event;

use KupShop\ReturnsBundle\Entity\ReturnEntity;
use Symfony\Contracts\EventDispatcher\Event;

class ReturnsEvent extends Event
{
    public const RETURN_CREATED = 'kupshop.returns.created';
    public const STATUS_CHANGED = 'kupshop.returns.status_changed';
    public const ORDER_CREATE = 'kupshop.returns.order_create';

    private $entity;
    private $status;

    private \Order $order;

    public function __construct(ReturnEntity $entity, $status)
    {
        $this->entity = $entity;
        $this->status = $status;
    }

    public function getEntity()
    {
        return $this->entity;
    }

    public function setEntity($entity): void
    {
        $this->entity = $entity;
    }

    public function getStatus()
    {
        return $this->status;
    }

    public function getOrder(): \Order
    {
        return $this->order;
    }

    public function setOrder(\Order $order): void
    {
        $this->order = $order;
    }
}
