src/Entity/Blog.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\BlogRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassBlogRepository::class)]
  7. class Blog
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\Column(length255)]
  14.     private ?string $Title null;
  15.     #[ORM\Column(length255)]
  16.     private ?string $Author null;
  17.     #[ORM\Column(length255nullabletrue)]
  18.     private ?string $Date null;
  19.     #[ORM\Column(length255)]
  20.     private ?string $Image null;
  21.     #[ORM\Column(length255)]
  22.     private ?string $Slug null;
  23.     #[ORM\Column(typeTypes::TEXT)]
  24.     private ?string $Content null;
  25.     #[ORM\Column]
  26.     private ?bool $active null;
  27.     #[ORM\Column(typeTypes::TEXT)]
  28.     private ?string $resume null;
  29.     public function getId(): ?int
  30.     {
  31.         return $this->id;
  32.     }
  33.     public function getTitle(): ?string
  34.     {
  35.         return $this->Title;
  36.     }
  37.     public function setTitle(string $Title): static
  38.     {
  39.         $this->Title $Title;
  40.         return $this;
  41.     }
  42.     public function getAuthor(): ?string
  43.     {
  44.         return $this->Author;
  45.     }
  46.     public function setAuthor(string $Author): static
  47.     {
  48.         $this->Author $Author;
  49.         return $this;
  50.     }
  51.     public function getDate(): ?string
  52.     {
  53.         return $this->Date;
  54.     }
  55.     public function setDate(?string $Date): static
  56.     {
  57.         $this->Date $Date;
  58.         return $this;
  59.     }
  60.     public function getImage(): ?string
  61.     {
  62.         return $this->Image;
  63.     }
  64.     public function setImage(string $Image): static
  65.     {
  66.         $this->Image $Image;
  67.         return $this;
  68.     }
  69.     public function getSlug(): ?string
  70.     {
  71.         return $this->Slug;
  72.     }
  73.     public function setSlug(string $Slug): static
  74.     {
  75.         $this->Slug $Slug;
  76.         return $this;
  77.     }
  78.     public function getContent(): ?string
  79.     {
  80.         return $this->Content;
  81.     }
  82.     public function setContent(string $Content): static
  83.     {
  84.         $this->Content $Content;
  85.         return $this;
  86.     }
  87.     public function isActive(): ?bool
  88.     {
  89.         return $this->active;
  90.     }
  91.     public function setActive(bool $active): static
  92.     {
  93.         $this->active $active;
  94.         return $this;
  95.     }
  96.     public function getResume(): ?string
  97.     {
  98.         return $this->resume;
  99.     }
  100.     public function setResume(string $resume): static
  101.     {
  102.         $this->resume $resume;
  103.         return $this;
  104.     }
  105. }