src/Entity/Patchfield.php line 7

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. #[ORM\Table(name'patchfield')]
  5. #[ORM\Entity(repositoryClass'App\Entity\Repository\PatchfieldRepository')]
  6. class Patchfield
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\Column(type'integer')]
  10.     #[ORM\GeneratedValue(strategy'AUTO')]
  11.     private $id;
  12.     #[ORM\Column(type'integer'nullabletrue)]
  13.     private $row;
  14.     #[ORM\Column(type'integer'nullabletrue)]
  15.     private $col;
  16.     #[ORM\Column(type'string'nullabletrue)]
  17.     private $shape;
  18.     #[ORM\Column(type'integer'nullabletrue)]
  19.     private $width;
  20.     #[ORM\Column(type'integer'nullabletrue)]
  21.     private $length;
  22.     #[ORM\Column(type'integer'nullabletrue)]
  23.     private $diameter;
  24.     #[ORM\Column(type'integer'nullabletrue)]
  25.     private $field_index;
  26.     #[ORM\Column(type'integer'nullabletrue)]
  27.     private $reference_index;
  28.     #[ORM\Column(type'json'nullabletrue)]
  29.     private $neighbours;
  30.     #[ORM\Column(type'boolean'nullabletrue)]
  31.     private $is_blocked;
  32.     #[ORM\Column(type'boolean'nullabletrue)]
  33.     private $is_way;
  34.     #[ORM\Column(type'boolean'nullabletrue)]
  35.     private $no_icon;
  36.     #[ORM\Column(type'boolean'nullabletrue)]
  37.     private $is_reference_field;
  38.     #[ORM\Column(type'integer'nullabletrue)]
  39.     private $combined_width;
  40.     #[ORM\Column(type'integer'nullabletrue)]
  41.     private $combined_height;
  42.     #[ORM\Column(type'integer'nullabletrue)]
  43.     private $current_day;
  44.     #[ORM\Column(type'string'nullabletrue)]
  45.     private $status;
  46.     #[ORM\Column(type'datetime'nullabletrue)]
  47.     private $date_last_update;
  48.     #[ORM\Column(type'datetime'nullabletrue)]
  49.     private $date_planting_planned;
  50.     /**
  51.      *
  52.      */
  53.     private $position_x;
  54.     /**
  55.      *
  56.      */
  57.     private $position_y;
  58.     /**
  59.      *
  60.      */
  61.     private $not_usable;
  62.     #[ORM\Column(type'datetime'nullabletrue)]
  63.     private $date_planted;
  64.     #[ORM\Column(type'datetime'nullabletrue)]
  65.     private $date_harvest_start;
  66.     #[ORM\Column(type'datetime'nullabletrue)]
  67.     private $date_harvest_planned;
  68.     #[ORM\Column(type'datetime'nullabletrue)]
  69.     private $date_harvested;
  70.     #[ORM\Column(type'datetime'nullabletrue)]
  71.     private $date_in_patch;
  72.     #[ORM\Column(type'string'nullabletrue)]
  73.     private $planting_type;
  74.     #[ORM\Column(type'datetime'nullablefalse)]
  75.     private $date_created;
  76.     #[ORM\Column(type'datetime'nullabletrue)]
  77.     private $date_updated;
  78.     #[ORM\ManyToOne(targetEntity'App\Entity\Crop'inversedBy'patchCrop')]
  79.     #[ORM\JoinColumn(name'crop_id'referencedColumnName'id')]
  80.     private $crop;
  81.     #[ORM\ManyToOne(targetEntity'App\Entity\Patch'inversedBy'patchfield')]
  82.     #[ORM\JoinColumn(name'patch_id'referencedColumnName'id'nullablefalse)]
  83.     private $patch;
  84.     #[ORM\ManyToOne(targetEntity'App\Entity\PatchfieldGroup'inversedBy'patchfield')]
  85.     #[ORM\JoinColumn(name'patchfield_group_id'referencedColumnName'id')]
  86.     private $patchfieldGroup;
  87.     public function __clone() {
  88.         $this->id null;
  89.     }
  90.     public function getId(): ?int
  91.     {
  92.         return $this->id;
  93.     }
  94.     public function getPositionX(): ?int
  95.     {
  96.         return $this->position_x;
  97.     }
  98.     public function setPositionX(?int $position_x): self
  99.     {
  100.         $this->position_x $position_x;
  101.         return $this;
  102.     }
  103.     public function getPositionY(): ?int
  104.     {
  105.         return $this->position_y;
  106.     }
  107.     public function setPositionY(?int $position_y): self
  108.     {
  109.         $this->position_y $position_y;
  110.         return $this;
  111.     }
  112.     public function getNotUsable(): ?bool
  113.     {
  114.         return $this->not_usable;
  115.     }
  116.     public function setNotUsable(?bool $not_usable): self
  117.     {
  118.         $this->not_usable $not_usable;
  119.         return $this;
  120.     }
  121.     public function getDatePlanted(): ?\DateTimeInterface
  122.     {
  123.         return $this->date_planted;
  124.     }
  125.     public function setDatePlanted(?\DateTimeInterface $date_planted): self
  126.     {
  127.         $this->date_planted $date_planted;
  128.         return $this;
  129.     }
  130.     public function getDateCreated(): ?\DateTimeInterface
  131.     {
  132.         return $this->date_created;
  133.     }
  134.     public function setDateCreated(\DateTimeInterface $date_created): self
  135.     {
  136.         $this->date_created $date_created;
  137.         return $this;
  138.     }
  139.     public function getCrop(): ?Crop
  140.     {
  141.         return $this->crop;
  142.     }
  143.     public function setCrop(?Crop $crop): self
  144.     {
  145.         $this->crop $crop;
  146.         return $this;
  147.     }
  148.     public function getPatch(): ?Patch
  149.     {
  150.         return $this->patch;
  151.     }
  152.     public function setPatch(?Patch $patch): self
  153.     {
  154.         $this->patch $patch;
  155.         return $this;
  156.     }
  157.     public function getRow(): ?int
  158.     {
  159.         return $this->row;
  160.     }
  161.     public function setRow(?int $row): self
  162.     {
  163.         $this->row $row;
  164.         return $this;
  165.     }
  166.     public function getCol(): ?int
  167.     {
  168.         return $this->col;
  169.     }
  170.     public function setCol(?int $col): self
  171.     {
  172.         $this->col $col;
  173.         return $this;
  174.     }
  175.     public function getReferenceIndex(): ?int
  176.     {
  177.         return $this->reference_index;
  178.     }
  179.     public function setReferenceIndex(?int $reference_index): self
  180.     {
  181.         $this->reference_index $reference_index;
  182.         return $this;
  183.     }
  184.     public function getNeighbours()
  185.     {
  186.         return $this->neighbours;
  187.     }
  188.     public function setNeighbours($neighbours): self
  189.     {
  190.         $this->neighbours $neighbours;
  191.         return $this;
  192.     }
  193.     public function getPatchfieldGroup(): ?PatchfieldGroup
  194.     {
  195.         return $this->patchfieldGroup;
  196.     }
  197.     public function setPatchfieldGroup(?PatchfieldGroup $patchfieldGroup): self
  198.     {
  199.         $this->patchfieldGroup $patchfieldGroup;
  200.         return $this;
  201.     }
  202.     public function getIsBlocked(): ?bool
  203.     {
  204.         return $this->is_blocked;
  205.     }
  206.     public function setIsBlocked(?bool $is_blocked): self
  207.     {
  208.         $this->is_blocked $is_blocked;
  209.         return $this;
  210.     }
  211.     public function getIsWay(): ?bool
  212.     {
  213.         return $this->is_way;
  214.     }
  215.     public function setIsWay(?bool $is_way): self
  216.     {
  217.         $this->is_way $is_way;
  218.         return $this;
  219.     }
  220.     public function getCombinedWidth(): ?int
  221.     {
  222.         return $this->combined_width;
  223.     }
  224.     public function setCombinedWidth(?int $combined_width): self
  225.     {
  226.         $this->combined_width $combined_width;
  227.         return $this;
  228.     }
  229.     public function getCombinedHeight(): ?int
  230.     {
  231.         return $this->combined_height;
  232.     }
  233.     public function setCombinedHeight(?int $combined_height): self
  234.     {
  235.         $this->combined_height $combined_height;
  236.         return $this;
  237.     }
  238.     public function getDateUpdated(): ?\DateTimeInterface
  239.     {
  240.         return $this->date_updated;
  241.     }
  242.     public function setDateUpdated(?\DateTimeInterface $date_updated): self
  243.     {
  244.         $this->date_updated $date_updated;
  245.         return $this;
  246.     }
  247.     public function getNoIcon(): ?bool
  248.     {
  249.         return $this->no_icon;
  250.     }
  251.     public function setNoIcon(?bool $no_icon): self
  252.     {
  253.         $this->no_icon $no_icon;
  254.         return $this;
  255.     }
  256.     public function getIsReferenceField(): ?bool
  257.     {
  258.         return $this->is_reference_field;
  259.     }
  260.     public function setIsReferenceField(?bool $is_reference_field): self
  261.     {
  262.         $this->is_reference_field $is_reference_field;
  263.         return $this;
  264.     }
  265.     public function getCurrentDay(): ?int
  266.     {
  267.         return $this->current_day;
  268.     }
  269.     public function setCurrentDay(?int $current_day): self
  270.     {
  271.         $this->current_day $current_day;
  272.         return $this;
  273.     }
  274.     public function getDateLastUpdate(): ?\DateTimeInterface
  275.     {
  276.         return $this->date_last_update;
  277.     }
  278.     public function setDateLastUpdate(?\DateTimeInterface $date_last_update): self
  279.     {
  280.         $this->date_last_update $date_last_update;
  281.         return $this;
  282.     }
  283.     public function getFieldIndex(): ?int
  284.     {
  285.         return $this->field_index;
  286.     }
  287.     public function setFieldIndex(?int $field_index): self
  288.     {
  289.         $this->field_index $field_index;
  290.         return $this;
  291.     }
  292.     public function getStatus(): ?string
  293.     {
  294.         return $this->status;
  295.     }
  296.     public function setStatus(?string $status): self
  297.     {
  298.         $this->status $status;
  299.         return $this;
  300.     }
  301.     public function getDateHarvestPlanned(): ?\DateTimeInterface
  302.     {
  303.         return $this->date_harvest_planned;
  304.     }
  305.     public function setDateHarvestPlanned(?\DateTimeInterface $date_harvest_planned): self
  306.     {
  307.         $this->date_harvest_planned $date_harvest_planned;
  308.         return $this;
  309.     }
  310.     public function getDateHarvested(): ?\DateTimeInterface
  311.     {
  312.         return $this->date_harvested;
  313.     }
  314.     public function setDateHarvested(?\DateTimeInterface $date_harvested): self
  315.     {
  316.         $this->date_harvested $date_harvested;
  317.         return $this;
  318.     }
  319.     public function getDatePlantingPlanned(): ?\DateTimeInterface
  320.     {
  321.         return $this->date_planting_planned;
  322.     }
  323.     public function setDatePlantingPlanned(?\DateTimeInterface $date_planting_planned): self
  324.     {
  325.         $this->date_planting_planned $date_planting_planned;
  326.         return $this;
  327.     }
  328.     public function getShape(): ?string
  329.     {
  330.         return $this->shape;
  331.     }
  332.     public function setShape(?string $shape): self
  333.     {
  334.         $this->shape $shape;
  335.         return $this;
  336.     }
  337.     public function getWidth(): ?int
  338.     {
  339.         return $this->width;
  340.     }
  341.     public function setWidth(?int $width): self
  342.     {
  343.         $this->width $width;
  344.         return $this;
  345.     }
  346.     public function getLength(): ?int
  347.     {
  348.         return $this->length;
  349.     }
  350.     public function setLength(?int $length): self
  351.     {
  352.         $this->length $length;
  353.         return $this;
  354.     }
  355.     public function getDiameter(): ?int
  356.     {
  357.         return $this->diameter;
  358.     }
  359.     public function setDiameter(?int $diameter): self
  360.     {
  361.         $this->diameter $diameter;
  362.         return $this;
  363.     }
  364.     public function getDateHarvestStart(): ?\DateTimeInterface
  365.     {
  366.         return $this->date_harvest_start;
  367.     }
  368.     public function setDateHarvestStart(?\DateTimeInterface $date_harvest_start): self
  369.     {
  370.         $this->date_harvest_start $date_harvest_start;
  371.         return $this;
  372.     }
  373.     public function getDateInPatch(): ?\DateTimeInterface
  374.     {
  375.         return $this->date_in_patch;
  376.     }
  377.     public function setDateInPatch(?\DateTimeInterface $date_in_patch): self
  378.     {
  379.         $this->date_in_patch $date_in_patch;
  380.         return $this;
  381.     }
  382.     public function getPlantingType(): ?string
  383.     {
  384.         return $this->planting_type;
  385.     }
  386.     public function setPlantingType(?string $planting_type): self
  387.     {
  388.         $this->planting_type $planting_type;
  389.         return $this;
  390.     }
  391. }