<?php
namespace Products\NotificationsBundle\Entity\ContactAttempts;
use Doctrine\ORM\Mapping as ORM;
use Products\NotificationsBundle\Entity\AbstractContactAttempt;
use Products\NotificationsBundle\Entity\Recipients\AppRecipient;
/**
* Class AppContactAttempt
* @package Products\NotificationsBundle\Entity\ContactAttepmts
*
* @method AppRecipient getRecipient()
*
* @ORM\Entity(
* repositoryClass = "Products\NotificationsBundle\Doctrine\Repository\ContactAttempts\AppContactAttemptRepository",
* )
*/
class AppContactAttempt extends AbstractTransactionalContactAttempt
{
const DISCR = 'app';
const STATUSES = [
...self::PENDING_STATUSES,
...self::SUCCESSFUL_STATUSES,
...self::FAILED_STATUSES,
];
const PENDING_STATUSES = [
...AbstractContactAttempt::PENDING_STATUSES,
'app.pending',
];
const SUCCESSFUL_STATUSES = [
...AbstractContactAttempt::SUCCESSFUL_STATUSES,
'app.successful',
];
const FAILED_STATUSES = [
...AbstractContactAttempt::FAILED_STATUSES,
'app.failed',
'app.obsolete',
];
}