<?php
namespace App\Entity;
use App\Repository\TransfertRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=TransfertRepository::class)
*/
class Transfert
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255)
*/
private $stripe_transfer_id;
/**
* @ORM\ManyToOne(targetEntity=Location::class, inversedBy="transferts")
* @ORM\JoinColumn(nullable=true)
*/
private $location;
/**
* @ORM\ManyToOne(targetEntity=Command::class, inversedBy="transferts")
*/
private $command;
/**
* @ORM\ManyToOne(targetEntity=Reservation::class, inversedBy="transferts")
*/
private $reservation;
public function getId(): ?int
{
return $this->id;
}
public function getStripeTransferId(): ?string
{
return $this->stripe_transfer_id;
}
public function setStripeTransferId(string $stripe_transfer_id): self
{
$this->stripe_transfer_id = $stripe_transfer_id;
return $this;
}
public function getLocation(): ?Location
{
return $this->location;
}
public function setLocation(?Location $location): self
{
$this->location = $location;
return $this;
}
public function getCommand(): ?Command
{
return $this->command;
}
public function setCommand(?Command $command): self
{
$this->command = $command;
return $this;
}
public function getReservation(): ?Reservation
{
return $this->reservation;
}
public function setReservation(?Reservation $reservation): self
{
$this->reservation = $reservation;
return $this;
}
}