src/Entity/News.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\NewsRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClass:NewsRepository::class )]
  6. class News
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue(strategy'AUTO')]
  10.     #[ORM\Column(type'integer'uniquetrue)]
  11.     private $id;
  12.     #[ORM\Column(type'string'length300)]
  13.     private $Nom;
  14.     #[ORM\Column(type'text'nullabletrue)]
  15.     private $Photo;
  16.     #[ORM\Column(type'date'nullabletrue)]
  17.     private $Date;
  18.     #[ORM\Column(type'text'nullabletrue)]
  19.     private $Text;
  20.     public function getId(): ?int
  21.     {
  22.         return $this->id;
  23.     }
  24.     public function getNom(): ?string
  25.     {
  26.         return $this->Nom;
  27.     }
  28.     public function setNom(string $Nom): self
  29.     {
  30.         $this->Nom $Nom;
  31.         return $this;
  32.     }
  33.     public function getPhoto(): ?string
  34.     {
  35.         return $this->Photo;
  36.     }
  37.     public function setPhoto(?string $Photo): self
  38.     {
  39.         $this->Photo $Photo;
  40.         return $this;
  41.     }
  42.     public function getDate(): ?\DateTimeInterface
  43.     {
  44.         return $this->Date;
  45.     }
  46.     public function setDate(?\DateTimeInterface $Date): self
  47.     {
  48.         $this->Date $Date;
  49.         return $this;
  50.     }
  51.     public function getText(): ?string
  52.     {
  53.         return $this->Text;
  54.     }
  55.     public function setText(?string $Text): self
  56.     {
  57.         $this->Text $Text;
  58.         return $this;
  59.     }
  60. }