/
home
/
obinna
/
html
/
boaz2
/
src
/
Entity
/
Upload File
HOME
<?php namespace App\Entity; use App\Repository\DepotRepository; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity(repositoryClass=DepotRepository::class) */ class Depot { /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="string", length=50) */ private $name; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $location; public function __construct() { $this->loadings = new ArrayCollection(); } public function getId(): ?int { return $this->id; } public function getName(): ?string { return $this->name; } public function setName(string $name): self { $this->name = $name; return $this; } public function getLocation(): ?string { return $this->location; } public function setLocation(?string $location): self { $this->location = $location; return $this; } }