37 lines
897 B
PHP
37 lines
897 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace KupShop\ReclamationsBundle\Email;
|
|
|
|
use KupShop\KupShopBundle\Email\UserMessagesInterface;
|
|
use KupShop\KupShopBundle\Email\UserMessagesTrait;
|
|
|
|
class ReclamationMessageEmail extends ReclamationEmail implements UserMessagesInterface
|
|
{
|
|
use UserMessagesTrait;
|
|
|
|
protected static $name = 'Zprávy uživatelům';
|
|
protected static $type = 'RECLAMATION_MESSAGE';
|
|
protected static $priority = 1;
|
|
|
|
public function getMessages($languageID = null): array
|
|
{
|
|
if (!$languageID && $this->reclamation) {
|
|
$languageID = $this->reclamation->getIdLanguage();
|
|
}
|
|
|
|
return $this->fetchMessages($languageID);
|
|
}
|
|
|
|
public function getMessagesByStatus($status, $languageID = null): array
|
|
{
|
|
return [];
|
|
}
|
|
|
|
public function getObjectId(): ?int
|
|
{
|
|
return $this->reclamation->getId();
|
|
}
|
|
}
|