/
home
/
obinna
/
html
/
boazapp
/
src
/
Entity
/
Upload File
HOME
<?php namespace App\Entity; use App\Repository\UserDepotRepository; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity(repositoryClass=UserDepotRepository::class) */ class UserDepot { /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\ManyToOne(targetEntity=User::class) * @ORM\JoinColumn(nullable=false) */ private $user; /** * @ORM\ManyToOne(targetEntity=Depot::class) * @ORM\JoinColumn(nullable=false) */ private $depot; /** * @ORM\Column(type="datetime") */ private $checkin; /** * @ORM\Column(type="datetime", nullable=true) */ private $checkout; public function getId(): ?int { return $this->id; } public function getUser(): ?User { return $this->user; } public function setUser(?User $user): self { $this->user = $user; return $this; } public function getDepot(): ?Depot { return $this->depot; } public function setDepot(?Depot $depot): self { $this->depot = $depot; return $this; } public function getCheckin(): ?\DateTimeInterface { return $this->checkin; } public function setCheckin(\DateTimeInterface $checkin): self { $this->checkin = $checkin; return $this; } public function getCheckout(): ?\DateTimeInterface { return $this->checkout; } public function setCheckout(?\DateTimeInterface $checkout): self { $this->checkout = $checkout; return $this; } }