<?php
namespace Products\NotificationsBundle\Entity\Lists\Components;
use Cms\TenantBundle\Entity\TenantedEntity;
use Doctrine\ORM\Mapping as ORM;
use Products\NotificationsBundle\Entity\Lists\StaticList;
use Products\NotificationsBundle\Entity\Profile;
/**
* @deprecated
*
* Class ListSubscription
* @package Products\NotificationsBundle\Entity\Lists\Components
*
* @ORM\Entity(
* repositoryClass = "Products\NotificationsBundle\Doctrine\Repository\Lists\Components\ListSubscriptionRepository",
* )
* @ORM\Table(
* name = "notis__list_subscription",
* )
*/
class ListSubscription extends TenantedEntity
{
/**
* @var StaticList|null
*
* @ORM\ManyToOne(
* targetEntity = "Products\NotificationsBundle\Entity\Lists\StaticList",
* inversedBy = "subscriptions",
* )
* @ORM\JoinColumn(
* name = "list",
* referencedColumnName = "id",
* nullable = false,
* onDelete = "CASCADE",
* )
*/
protected ?StaticList $list = null;
/**
* @var Profile|null
*
* @ORM\ManyToOne(
* targetEntity = "Products\NotificationsBundle\Entity\Profile",
* )
* @ORM\JoinColumn(
* name = "profile",
* referencedColumnName = "id",
* nullable = false,
* onDelete = "CASCADE",
* )
*/
protected ?Profile $profile = null;
/**
* @return StaticList|null
*/
public function getList(): ?StaticList
{
return $this->list;
}
/**
* @param StaticList $list
* @return $this
*/
public function setList(StaticList $list): self
{
$this->list = $list;
return $this;
}
/**
* @return Profile|null
*/
public function getProfile(): ?Profile
{
return $this->profile;
}
/**
* @param Profile $profile
* @return $this
*/
public function setProfile(Profile $profile): self
{
$this->profile = $profile;
return $this;
}
}