<?php
namespace App\Entity;
use App\Repository\RapportRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: RapportRepository::class)]
class Rapport
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\Column(type: 'integer')]
private $inscription;
#[ORM\Column(type: 'integer')]
private $stage;
#[ORM\Column(type: 'float', nullable: true)]
private $note;
#[ORM\Column(type: 'text', nullable: true)]
private $observation;
#[ORM\Column(type: 'datetime')]
private $dateCreated;
#[ORM\Column(type: 'datetime')]
private $dateUpdated;
#[ORM\Column(type: 'string', length: 255)]
private $type;
#[ORM\Column(type: 'string', length: 255)]
private $url;
#[ORM\ManyToOne(targetEntity: User::class, inversedBy: 'rapports')]
private $prof;
public function getId(): ?int
{
return $this->id;
}
public function getInscription(): ?int
{
return $this->inscription;
}
public function setInscription(int $inscription): self
{
$this->inscription = $inscription;
return $this;
}
public function getStage(): ?int
{
return $this->stage;
}
public function setStage(int $stage): self
{
$this->stage = $stage;
return $this;
}
public function getNote(): ?float
{
return $this->note;
}
public function setNote(?float $note): self
{
$this->note = $note;
return $this;
}
public function getObservation(): ?string
{
return $this->observation;
}
public function setObservation(?string $observation): self
{
$this->observation = $observation;
return $this;
}
public function getDateCreated(): ?\DateTimeInterface
{
return $this->dateCreated;
}
public function setDateCreated(\DateTimeInterface $dateCreated): self
{
$this->dateCreated = $dateCreated;
return $this;
}
public function getDateUpdated(): ?\DateTimeInterface
{
return $this->dateUpdated;
}
public function setDateUpdated(\DateTimeInterface $dateUpdated): self
{
$this->dateUpdated = $dateUpdated;
return $this;
}
public function getType(): ?string
{
return $this->type;
}
public function setType(string $type): self
{
$this->type = $type;
return $this;
}
public function getUrl(): ?string
{
return $this->url;
}
public function setUrl(string $url): self
{
$this->url = $url;
return $this;
}
public function getProf(): ?User
{
return $this->prof;
}
public function setProf(?User $prof): self
{
$this->prof = $prof;
return $this;
}
}