<?phpnamespace App\Entity;use App\Repository\BlogArticleRepository;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=BlogArticleRepository::class) */class BlogArticle{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="string", length=255) */ private $title; /** * @ORM\Column(type="text") */ private $content; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $image; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $video; /** * @ORM\Column(type="datetime") */ private $createdAt; /** * @ORM\Column(type="datetime", nullable=true) */ private $updatedAt; /** * @ORM\ManyToOne(targetEntity=BlogCategory::class, inversedBy="blogArticles") * @ORM\JoinColumn(nullable=false) */ private $category; /** * @ORM\Column(type="boolean") */ private $isEnabled = true; /** * @ORM\Column(type="string", length=255) */ private $slug; public function getId(): ?int { return $this->id; } public function getTitle(): ?string { return $this->title; } public function setTitle(string $title): self { $this->title = $title; return $this; } public function getContent(): ?string { return $this->content; } public function setContent(string $content): self { $this->content = $content; return $this; } public function getImage(): ?string { return $this->image; } public function setImage(?string $image): self { $this->image = $image; return $this; } public function getVideo(): ?string { return $this->video; } public function setVideo(?string $video): self { $this->video = $video; return $this; } public function getCreatedAt(): ?\DateTimeInterface { return $this->createdAt; } public function setCreatedAt(\DateTimeInterface $createdAt): self { $this->createdAt = $createdAt; return $this; } public function getUpdatedAt(): ?\DateTimeInterface { return $this->updatedAt; } public function setUpdatedAt(?\DateTimeInterface $updatedAt): self { $this->updatedAt = $updatedAt; return $this; } public function getCategory(): ?BlogCategory { return $this->category; } public function setCategory(?BlogCategory $category): self { $this->category = $category; return $this; } public function isIsEnabled(): ?bool { return $this->isEnabled; } public function setIsEnabled(bool $isEnabled): self { $this->isEnabled = $isEnabled; return $this; } public function getSlug(): ?string { return $this->slug; } public function setSlug(string $slug): self { $this->slug = $slug; return $this; } public function __toString() { return $this->getTitle(); }}