src/Entity/PlanCrop.php line 6

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. #[ORM\Entity]
  5. class PlanCrop
  6. {
  7.     #[ORM\Id]
  8.     #[ORM\Column(type'integer')]
  9.     #[ORM\GeneratedValue(strategy'AUTO')]
  10.     private $id;
  11.     #[ORM\Column(type'boolean'nullabletrue)]
  12.     private $is_fill_crop;
  13.     #[ORM\Column(type'integer'nullablefalse)]
  14.     private $amount;
  15.     #[ORM\Column(type'datetime'nullabletrue)]
  16.     private $date_created;
  17.     #[ORM\ManyToOne(targetEntity'App\Entity\Crop'inversedBy'planCrop')]
  18.     #[ORM\JoinColumn(name'crop_id'referencedColumnName'id'nullablefalse)]
  19.     private $crop;
  20.     #[ORM\ManyToOne(targetEntity'App\Entity\Plan'inversedBy'planCrop')]
  21.     #[ORM\JoinColumn(name'plan_id'referencedColumnName'id'nullablefalse)]
  22.     private $plan;
  23.     public function getId(): ?int
  24.     {
  25.         return $this->id;
  26.     }
  27.     public function getDateCreated(): ?\DateTimeInterface
  28.     {
  29.         return $this->date_created;
  30.     }
  31.     public function setDateCreated(?\DateTimeInterface $date_created): self
  32.     {
  33.         $this->date_created $date_created;
  34.         return $this;
  35.     }
  36.     public function getCrop(): ?Crop
  37.     {
  38.         return $this->crop;
  39.     }
  40.     public function setCrop(?Crop $crop): self
  41.     {
  42.         $this->crop $crop;
  43.         return $this;
  44.     }
  45.     public function getPlan(): ?Plan
  46.     {
  47.         return $this->plan;
  48.     }
  49.     public function setPlan(?Plan $plan): self
  50.     {
  51.         $this->plan $plan;
  52.         return $this;
  53.     }
  54.     public function getAmount(): ?int
  55.     {
  56.         return $this->amount;
  57.     }
  58.     public function setAmount(int $amount): self
  59.     {
  60.         $this->amount $amount;
  61.         return $this;
  62.     }
  63.     public function getIsFillCrop(): ?bool
  64.     {
  65.         return $this->is_fill_crop;
  66.     }
  67.     public function setIsFillCrop(?bool $is_fill_crop): self
  68.     {
  69.         $this->is_fill_crop $is_fill_crop;
  70.         return $this;
  71.     }
  72. }