src/Products/NotificationsBundle/Entity/ContactAttempts/AppContactAttempt.php line 19

Open in your IDE?
  1. <?php
  2. namespace Products\NotificationsBundle\Entity\ContactAttempts;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Products\NotificationsBundle\Entity\AbstractContactAttempt;
  5. use Products\NotificationsBundle\Entity\Recipients\AppRecipient;
  6. /**
  7.  * Class AppContactAttempt
  8.  * @package Products\NotificationsBundle\Entity\ContactAttepmts
  9.  *
  10.  * @method AppRecipient getRecipient()
  11.  *
  12.  * @ORM\Entity(
  13.  *     repositoryClass = "Products\NotificationsBundle\Doctrine\Repository\ContactAttempts\AppContactAttemptRepository",
  14.  * )
  15.  */
  16. class AppContactAttempt extends AbstractTransactionalContactAttempt
  17. {
  18.     const DISCR 'app';
  19.     const STATUSES = [
  20.         ...self::PENDING_STATUSES,
  21.         ...self::SUCCESSFUL_STATUSES,
  22.         ...self::FAILED_STATUSES,
  23.     ];
  24.     const PENDING_STATUSES = [
  25.         ...AbstractContactAttempt::PENDING_STATUSES,
  26.         'app.pending',
  27.     ];
  28.     const SUCCESSFUL_STATUSES = [
  29.         ...AbstractContactAttempt::SUCCESSFUL_STATUSES,
  30.         'app.successful',
  31.     ];
  32.     const FAILED_STATUSES = [
  33.         ...AbstractContactAttempt::FAILED_STATUSES,
  34.         'app.failed',
  35.         'app.obsolete',
  36.     ];
  37. }