src/Entity/Transfert.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\TransfertRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=TransfertRepository::class)
  7.  */
  8. class Transfert
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\Column(type="string", length=255)
  18.      */
  19.     private $stripe_transfer_id;
  20.     /**
  21.      * @ORM\ManyToOne(targetEntity=Location::class, inversedBy="transferts")
  22.      * @ORM\JoinColumn(nullable=true)
  23.      */
  24.     private $location;
  25.     /**
  26.      * @ORM\ManyToOne(targetEntity=Command::class, inversedBy="transferts")
  27.      */
  28.     private $command;
  29.     /**
  30.      * @ORM\ManyToOne(targetEntity=Reservation::class, inversedBy="transferts")
  31.      */
  32.     private $reservation;
  33.     public function getId(): ?int
  34.     {
  35.         return $this->id;
  36.     }
  37.     public function getStripeTransferId(): ?string
  38.     {
  39.         return $this->stripe_transfer_id;
  40.     }
  41.     public function setStripeTransferId(string $stripe_transfer_id): self
  42.     {
  43.         $this->stripe_transfer_id $stripe_transfer_id;
  44.         return $this;
  45.     }
  46.     public function getLocation(): ?Location
  47.     {
  48.         return $this->location;
  49.     }
  50.     public function setLocation(?Location $location): self
  51.     {
  52.         $this->location $location;
  53.         return $this;
  54.     }
  55.     public function getCommand(): ?Command
  56.     {
  57.         return $this->command;
  58.     }
  59.     public function setCommand(?Command $command): self
  60.     {
  61.         $this->command $command;
  62.         return $this;
  63.     }
  64.     public function getReservation(): ?Reservation
  65.     {
  66.         return $this->reservation;
  67.     }
  68.     public function setReservation(?Reservation $reservation): self
  69.     {
  70.         $this->reservation $reservation;
  71.         return $this;
  72.     }
  73. }