<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=BlogPostNotificationRepository::class)
*/
class BlogPostNotification
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\OneToOne(targetEntity=BlogPost::class, mappedBy="notification")
*/
private $blogPost;
/**
* @ORM\Column(type="string", length=150)
*/
private $title;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $description;
public function getId(): ?int
{
return $this->id;
}
public function getBlogPost(): ?BlogPost
{
return $this->blogPost;
}
public function setBlogPost(?BlogPost $blogPost): self
{
$this->blogPost = $blogPost;
return $this;
}
public function getTitle(): ?string
{
return $this->title;
}
public function setTitle(string $title): self
{
$this->title = $title;
return $this;
}
public function getDescription(): ?string
{
return $this->description;
}
public function setDescription(?string $description): self
{
$this->description = $description;
return $this;
}
}