<?php

use KupShop\KupShopBundle\Util\Compat\ServiceContainer;
use KupShop\ReturnsBundle\Util\ReturnsUtil;

class ReturnsMenu extends Menu
{
    public function get_vars()
    {
        $vars = parent::get_vars();

        /** @var ReturnsUtil $returns */
        $returns = ServiceContainer::getService(ReturnsUtil::class);

        $vars['statuses'] = $returns->getStatuses();
        $vars['reasons'] = $returns->getReasons();

        return $vars;
    }
}
