<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass="App\Repository\PlanningReservationRepository")
* @ORM\Table(name="loc_planning_reservations")
*/
class PlanningReservation
{
const RESOURCE_KEY = 'plannings';
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="integer")
*/
public $salle_id;
/**
* @ORM\Column(type="integer")
*/
public $client_id;
/**
* @ORM\Column(type="integer")
*/
public $tarif_id;
/**
* @ORM\Column(type="integer")
*/
public $transaction_id;
/**
* @ORM\Column(type="date")
*/
public $date_reservation;
/**
* @ORM\Column(type="date")
*/
public $date_reservation_fin;
/**
* @ORM\Column(type="string", length=5)
*/
public $heure_debut;
/**
* @ORM\Column(type="string", length=5)
*/
public $heure_fin;
/**
* @ORM\Column(type="string", length=50)
*/
public $motif;
/**
* @ORM\Column(type="integer", length=5)
*/
public $statut_id;
/**
* @ORM\Column(type="datetime")
*/
public $created;
/**
* @ORM\Column(type="datetime")
*/
public $changed;
public function getId(): ?string
{
return $this->id;
}
public function getClientId(): ?int
{
return $this->client_id;
}
public function setClientId(int $client_id): self
{
$this->client_id = $client_id;
return $this;
}
public function getTarifId(): ?int
{
return $this->tarif_id;
}
public function setTarifId(int $tarif_id): self
{
$this->tarif_id = $tarif_id;
return $this;
}
public function getTransactionId(): ?int
{
return $this->transaction_id;
}
public function setTransactionId(int $transaction_id): self
{
$this->transaction_id = $transaction_id;
return $this;
}
public function getDateReservation(): ?\DateTime
{
return $this->date_reservation;
}
public function setDateReservation(string $date_reservation): self
{
$date_reservation = new \DateTime($date_reservation);
$this->date_reservation = $date_reservation;
return $this;
}
public function getDateReservationFin(): ?\DateTime
{
return $this->date_reservation_fin;
}
public function setDateReservationFin(string $date_reservation_fin): self
{
$date_reservation_fin = new \DateTime($date_reservation_fin);
$this->date_reservation_fin = $date_reservation_fin;
return $this;
}
public function getHeureDebut(): ?string
{
return $this->heure_debut;
}
public function setHeureDebut(string $heure_debut): self
{
$this->heure_debut = $heure_debut;
return $this;
}
public function getHeureFin(): ?string
{
return $this->heure_fin;
}
public function setHeureFin(string $heure_fin): self
{
$this->heure_fin = $heure_fin;
return $this;
}
public function setMotif($motif): ?string
{
$this->motif = $motif;
return $this;
}
public function getMotif(): ?string
{
return $this->motif;
}
public function setStatutId($statut_id): self
{
$this->statut_id = $statut_id;
return $this;
}
public function getStatutId(): ?int
{
return $this->statut_id;
}
public function getChanged(): ?\DateTime
{
return $this->changed;
}
public function setChanged(): self
{
$this->changed = new \DateTime();
return $this;
}
public function getCreated(): ?\DateTime
{
return $this->created;
}
public function setCreated(): self
{
$this->created = new \DateTime();
return $this;
}
}