src/Entity/BlogPostNotification.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * @ORM\Entity(repositoryClass=BlogPostNotificationRepository::class)
  6.  */
  7. class BlogPostNotification
  8. {
  9.     /**
  10.      * @ORM\Id
  11.      * @ORM\GeneratedValue
  12.      * @ORM\Column(type="integer")
  13.      */
  14.     private $id;
  15.     /**
  16.      * @ORM\OneToOne(targetEntity=BlogPost::class, mappedBy="notification")
  17.      */
  18.     private $blogPost;
  19.     /**
  20.      * @ORM\Column(type="string", length=150)
  21.      */
  22.     private $title;
  23.     /**
  24.      * @ORM\Column(type="text", nullable=true)
  25.      */
  26.     private $description;
  27.     public function getId(): ?int
  28.     {
  29.         return $this->id;
  30.     }
  31.     public function getBlogPost(): ?BlogPost
  32.     {
  33.         return $this->blogPost;
  34.     }
  35.     public function setBlogPost(?BlogPost $blogPost): self
  36.     {
  37.         $this->blogPost $blogPost;
  38.         return $this;
  39.     }
  40.     public function getTitle(): ?string
  41.     {
  42.         return $this->title;
  43.     }
  44.     public function setTitle(string $title): self
  45.     {
  46.         $this->title $title;
  47.         return $this;
  48.     }
  49.     public function getDescription(): ?string
  50.     {
  51.         return $this->description;
  52.     }
  53.     public function setDescription(?string $description): self
  54.     {
  55.         $this->description $description;
  56.         return $this;
  57.     }
  58. }