<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity()
*/
class Article
{
/**
* @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)
*/
private $author;
/**
* @ORM\Column(type="datetime")
*/
private $createdAt;
/**
* @ORM\Column(type="string", length=255)
*/
private $category;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $image;
/**
* @ORM\Column(type="boolean")
*/
private $isFeatured = false;
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 getAuthor(): ?string { return $this->author; }
public function setAuthor(string $author): self { $this->author = $author; return $this; }
public function getCreatedAt(): ?\DateTimeInterface { return $this->createdAt; }
public function setCreatedAt(\DateTimeInterface $createdAt): self { $this->createdAt = $createdAt; return $this; }
public function getCategory(): ?string { return $this->category; }
public function setCategory(string $category): self { $this->category = $category; return $this; }
public function getImage(): ?string { return $this->image; }
public function setImage(?string $image): self { $this->image = $image; return $this; }
public function getIsFeatured(): ?bool { return $this->isFeatured; }
public function setIsFeatured(bool $isFeatured): self { $this->isFeatured = $isFeatured; return $this; }
}