<?php

namespace KupShop\BalikonosBundle\Email;

use KupShop\KupShopBundle\Email\OrderEmail;

class OrderDeliveredEmail extends OrderEmail
{
    protected static $name = 'Objednávka převzata';
    protected static $type = 'ORDER_DELIVERED';
    protected static $priority = 1;

    protected $subject = 'Objednávka {KOD} převzata';
    protected $template = 'email/email_order_delivered.tpl';

    public function getMicrodata(): array
    {
        if ($microdata = parent::getMicrodata()) {
            $microdata['orderStatus'] = 'https://schema.org/OrderDelivered';
        }

        return $microdata;
    }
}
