src/Entity/MenuCard.php line 10

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\MenuCardRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassMenuCardRepository::class)]
  7. class MenuCard
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\Column(length255)]
  14.     private ?string $title null;
  15.     #[ORM\Column(length255)]
  16.     private ?string $description null;
  17.     #[ORM\Column(typeTypes::TEXT)]
  18.     private ?string $list null;
  19.     #[ORM\Column]
  20.     private ?int $price null;
  21.     #[ORM\ManyToOne(inversedBy'menuCards')]
  22.     #[ORM\JoinColumn(nullablefalse)]
  23.     private ?BranchOffice $branchOffice null;
  24.     public function getId(): ?int
  25.     {
  26.         return $this->id;
  27.     }
  28.     public function getTitle(): ?string
  29.     {
  30.         return $this->title;
  31.     }
  32.     public function setTitle(string $title): self
  33.     {
  34.         $this->title $title;
  35.         return $this;
  36.     }
  37.     public function getDescription(): ?string
  38.     {
  39.         return $this->description;
  40.     }
  41.     public function setDescription(string $description): self
  42.     {
  43.         $this->description $description;
  44.         return $this;
  45.     }
  46.     public function getList(): ?string
  47.     {
  48.         return $this->list;
  49.     }
  50.     public function setList(string $list): self
  51.     {
  52.         $this->list $list;
  53.         return $this;
  54.     }
  55.     public function getPrice(): ?int
  56.     {
  57.         return $this->price;
  58.     }
  59.     public function setPrice(int $price): self
  60.     {
  61.         $this->price $price;
  62.         return $this;
  63.     }
  64.     public function getBranchOffice(): ?BranchOffice
  65.     {
  66.         return $this->branchOffice;
  67.     }
  68.     public function setBranchOffice(?BranchOffice $branchOffice): self
  69.     {
  70.         $this->branchOffice $branchOffice;
  71.         return $this;
  72.     }
  73.     public function __toString()
  74.     {
  75.         return $this->title;
  76.     }
  77. }