src/Products/NotificationsBundle/Entity/Lists/Components/ListSubscription.php line 23

Open in your IDE?
  1. <?php
  2. namespace Products\NotificationsBundle\Entity\Lists\Components;
  3. use Cms\TenantBundle\Entity\TenantedEntity;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Products\NotificationsBundle\Entity\Lists\StaticList;
  6. use Products\NotificationsBundle\Entity\Profile;
  7. /**
  8.  * @deprecated
  9.  *
  10.  * Class ListSubscription
  11.  * @package Products\NotificationsBundle\Entity\Lists\Components
  12.  *
  13.  * @ORM\Entity(
  14.  *     repositoryClass = "Products\NotificationsBundle\Doctrine\Repository\Lists\Components\ListSubscriptionRepository",
  15.  * )
  16.  * @ORM\Table(
  17.  *     name = "notis__list_subscription",
  18.  * )
  19.  */
  20. class ListSubscription extends TenantedEntity
  21. {
  22.     /**
  23.      * @var StaticList|null
  24.      *
  25.      * @ORM\ManyToOne(
  26.      *     targetEntity = "Products\NotificationsBundle\Entity\Lists\StaticList",
  27.      *     inversedBy = "subscriptions",
  28.      * )
  29.      * @ORM\JoinColumn(
  30.      *     name = "list",
  31.      *     referencedColumnName = "id",
  32.      *     nullable = false,
  33.      *     onDelete = "CASCADE",
  34.      * )
  35.      */
  36.     protected ?StaticList $list null;
  37.     /**
  38.      * @var Profile|null
  39.      *
  40.      * @ORM\ManyToOne(
  41.      *     targetEntity = "Products\NotificationsBundle\Entity\Profile",
  42.      * )
  43.      * @ORM\JoinColumn(
  44.      *     name = "profile",
  45.      *     referencedColumnName = "id",
  46.      *     nullable = false,
  47.      *     onDelete = "CASCADE",
  48.      * )
  49.      */
  50.     protected ?Profile $profile null;
  51.     /**
  52.      * @return StaticList|null
  53.      */
  54.     public function getList(): ?StaticList
  55.     {
  56.         return $this->list;
  57.     }
  58.     /**
  59.      * @param StaticList $list
  60.      * @return $this
  61.      */
  62.     public function setList(StaticList $list): self
  63.     {
  64.         $this->list $list;
  65.         return $this;
  66.     }
  67.     /**
  68.      * @return Profile|null
  69.      */
  70.     public function getProfile(): ?Profile
  71.     {
  72.         return $this->profile;
  73.     }
  74.     /**
  75.      * @param Profile $profile
  76.      * @return $this
  77.      */
  78.     public function setProfile(Profile $profile): self
  79.     {
  80.         $this->profile $profile;
  81.         return $this;
  82.     }
  83. }