<?php
namespace Products\NotificationsBundle\Entity\ContactAttempts;
use Cms\ContainerBundle\Entity\Containers\GenericContainer;
use Doctrine\ORM\Mapping as ORM;
use Products\NotificationsBundle\Entity\AbstractContactAttempt;
/**
* Class WebsiteContactAttempt
* @package Products\NotificationsBundle\Entity\ContactAttepmts
*
* @ORM\Entity(
* repositoryClass = "Products\NotificationsBundle\Doctrine\Repository\ContactAttempts\WebsiteContactAttemptRepository",
* )
*/
class WebsiteContactAttempt extends AbstractServiceContactAttempt
{
const DISCR = 'website';
const STATUSES = [
...self::PENDING_STATUSES,
...self::SUCCESSFUL_STATUSES,
...self::FAILED_STATUSES,
];
const PENDING_STATUSES = [
...AbstractContactAttempt::PENDING_STATUSES,
];
const SUCCESSFUL_STATUSES = [
...AbstractContactAttempt::SUCCESSFUL_STATUSES,
];
const FAILED_STATUSES = [
...AbstractContactAttempt::FAILED_STATUSES,
];
/**
* @var GenericContainer|null
*
* @ORM\ManyToOne(
* targetEntity = "Cms\ContainerBundle\Entity\Containers\GenericContainer",
* )
* @ORM\JoinColumn(
* name = "department",
* referencedColumnName = "id",
* nullable = true,
* onDelete = "SET NULL",
* )
*/
protected ?GenericContainer $department = null;
/**
* @return GenericContainer|null
*/
public function getDepartment(): ?GenericContainer
{
return $this->department;
}
/**
* @param GenericContainer|null $department
* @return $this
*/
public function setDepartment(?GenericContainer $department): self
{
$this->department = $department;
return $this;
}
}