src/Entity/Article.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ArticleRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * @ORM\Entity(repositoryClass=ArticleRepository::class)
  8.  */
  9. class Article
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\Column(type="string", length=255)
  19.      */
  20.     private $title;
  21.     /**
  22.      * @ORM\Column(type="text")
  23.      */
  24.     private $content;
  25.     /**
  26.      * @ORM\Column(type="string", length=255)
  27.      */
  28.     private $image;
  29.     /**
  30.      * @ORM\Column(type="datetime_immutable")
  31.      */
  32.     private $createdAt;
  33.     /**
  34.      * @ORM\Column(type="boolean")
  35.      */
  36.     private $isDeleted=false;
  37.     /**
  38.      * @ORM\Column(type="string", length=255, nullable=true)
  39.      */
  40.     private $pieceJoindre;
  41.     /**
  42.      * @ORM\Column(type="string", length=255, nullable=true)
  43.      */
  44.     private $createdBy;
  45.     public function getId(): ?int
  46.     {
  47.         return $this->id;
  48.     }
  49.     public function getTitle(): ?string
  50.     {
  51.         return $this->title;
  52.     }
  53.     public function setTitle(string $title): self
  54.     {
  55.         $this->title $title;
  56.         return $this;
  57.     }
  58.     public function getContent(): ?string
  59.     {
  60.         return $this->content;
  61.     }
  62.     public function setContent(string $content): self
  63.     {
  64.         $this->content $content;
  65.         return $this;
  66.     }
  67.     public function getImage(): ?string
  68.     {
  69.         return $this->image;
  70.     }
  71.     public function setImage(string $image): self
  72.     {
  73.         $this->image $image;
  74.         return $this;
  75.     }
  76.     public function getCreatedAt(): ?\DateTimeImmutable
  77.     {
  78.         return $this->createdAt;
  79.     }
  80.     public function setCreatedAt(\DateTimeImmutable $createdAt): self
  81.     {
  82.         $this->createdAt $createdAt;
  83.         return $this;
  84.     }
  85.     public function getIsDeleted(): ?bool
  86.     {
  87.         return $this->isDeleted;
  88.     }
  89.     public function setIsDeleted(bool $isDeleted): self
  90.     {
  91.         $this->isDeleted $isDeleted;
  92.         return $this;
  93.     }
  94.     public function isIsDeleted(): ?bool
  95.     {
  96.         return $this->isDeleted;
  97.     }
  98.     public function getPieceJoindre(): ?string
  99.     {
  100.         return $this->pieceJoindre;
  101.     }
  102.     public function setPieceJoindre(?string $pieceJoindre): self
  103.     {
  104.         $this->pieceJoindre $pieceJoindre;
  105.         return $this;
  106.     }
  107.     public function getCreatedBy(): ?string
  108.     {
  109.         return $this->createdBy;
  110.     }
  111.     public function setCreatedBy(?string $createdBy): self
  112.     {
  113.         $this->createdBy $createdBy;
  114.         return $this;
  115.     }
  116. }