<?php
namespace App\Entity;
use App\Repository\NewsRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass:NewsRepository::class )]
class News
{
#[ORM\Id]
#[ORM\GeneratedValue(strategy: 'AUTO')]
#[ORM\Column(type: 'integer', unique: true)]
private $id;
#[ORM\Column(type: 'string', length: 300)]
private $Nom;
#[ORM\Column(type: 'text', nullable: true)]
private $Photo;
#[ORM\Column(type: 'date', nullable: true)]
private $Date;
#[ORM\Column(type: 'text', nullable: true)]
private $Text;
public function getId(): ?int
{
return $this->id;
}
public function getNom(): ?string
{
return $this->Nom;
}
public function setNom(string $Nom): self
{
$this->Nom = $Nom;
return $this;
}
public function getPhoto(): ?string
{
return $this->Photo;
}
public function setPhoto(?string $Photo): self
{
$this->Photo = $Photo;
return $this;
}
public function getDate(): ?\DateTimeInterface
{
return $this->Date;
}
public function setDate(?\DateTimeInterface $Date): self
{
$this->Date = $Date;
return $this;
}
public function getText(): ?string
{
return $this->Text;
}
public function setText(?string $Text): self
{
$this->Text = $Text;
return $this;
}
}