<?php

namespace KupShop\KupShopBundle\Email;

class WaitingPackageEmail extends OrderEmail
{
    protected static $name = 'Notifikace o čekajícím balíčku';
    protected static $type = 'WAITING_PACKAGE';
    protected static $priority = 4;

    protected $subject = 'Čekající balíček';
    protected $template = 'email/email_waiting_package.tpl';

    public static function isAllowed()
    {
        return findModule(\Modules::ORDERS, \Modules::SUB_NOTIFY_WAITING_PACKAGE) || findModule(\Modules::AUTOMATION_CONFIGURATOR);
    }
}
