src/Entity/ShoparticleCrop.php line 7

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. #[ORM\Table(name'shoparticle_crop')]
  5. #[ORM\Entity(repositoryClass'App\Entity\Repository\ShoparticleCropRepository')]
  6. class ShoparticleCrop
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\Column(type'integer')]
  10.     #[ORM\GeneratedValue(strategy'AUTO')]
  11.     private $id;
  12.     #[ORM\Column(type'integer'nullablefalse)]
  13.     private $priority;
  14.     #[ORM\ManyToOne(targetEntity'App\Entity\Crop'inversedBy'shoparticleCrop')]
  15.     #[ORM\JoinColumn(name'crop_id'referencedColumnName'id'nullablefalse)]
  16.     private $crop;
  17.     #[ORM\ManyToOne(targetEntity'App\Entity\Shoparticle'inversedBy'shoparticleCrop')]
  18.     #[ORM\JoinColumn(name'shoparticle_id'referencedColumnName'id'nullablefalse)]
  19.     private $shoparticle;
  20.     #[ORM\Column(nullabletrue)]
  21.     private ?bool $manual null;
  22.     public function getId(): ?int
  23.     {
  24.         return $this->id;
  25.     }
  26.     public function getCrop(): ?Crop
  27.     {
  28.         return $this->crop;
  29.     }
  30.     public function setCrop(?Crop $crop): self
  31.     {
  32.         $this->crop $crop;
  33.         return $this;
  34.     }
  35.     public function getShoparticle(): ?Shoparticle
  36.     {
  37.         return $this->shoparticle;
  38.     }
  39.     public function setShoparticle(?Shoparticle $shoparticle): self
  40.     {
  41.         $this->shoparticle $shoparticle;
  42.         return $this;
  43.     }
  44.     public function getPriority(): ?int
  45.     {
  46.         return $this->priority;
  47.     }
  48.     public function setPriority(int $priority): self
  49.     {
  50.         $this->priority $priority;
  51.         return $this;
  52.     }
  53.     public function isManual(): ?bool
  54.     {
  55.         return $this->manual;
  56.     }
  57.     public function setManual(?bool $manual): self
  58.     {
  59.         $this->manual $manual;
  60.         return $this;
  61.     }
  62. }