<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Table(name: 'patchfield')]
#[ORM\Entity(repositoryClass: 'App\Entity\Repository\PatchfieldRepository')]
class Patchfield
{
#[ORM\Id]
#[ORM\Column(type: 'integer')]
#[ORM\GeneratedValue(strategy: 'AUTO')]
private $id;
#[ORM\Column(type: 'integer', nullable: true)]
private $row;
#[ORM\Column(type: 'integer', nullable: true)]
private $col;
#[ORM\Column(type: 'string', nullable: true)]
private $shape;
#[ORM\Column(type: 'integer', nullable: true)]
private $width;
#[ORM\Column(type: 'integer', nullable: true)]
private $length;
#[ORM\Column(type: 'integer', nullable: true)]
private $diameter;
#[ORM\Column(type: 'integer', nullable: true)]
private $field_index;
#[ORM\Column(type: 'integer', nullable: true)]
private $reference_index;
#[ORM\Column(type: 'json', nullable: true)]
private $neighbours;
#[ORM\Column(type: 'boolean', nullable: true)]
private $is_blocked;
#[ORM\Column(type: 'boolean', nullable: true)]
private $is_way;
#[ORM\Column(type: 'boolean', nullable: true)]
private $no_icon;
#[ORM\Column(type: 'boolean', nullable: true)]
private $is_reference_field;
#[ORM\Column(type: 'integer', nullable: true)]
private $combined_width;
#[ORM\Column(type: 'integer', nullable: true)]
private $combined_height;
#[ORM\Column(type: 'integer', nullable: true)]
private $current_day;
#[ORM\Column(type: 'string', nullable: true)]
private $status;
#[ORM\Column(type: 'datetime', nullable: true)]
private $date_last_update;
#[ORM\Column(type: 'datetime', nullable: true)]
private $date_planting_planned;
/**
*
*/
private $position_x;
/**
*
*/
private $position_y;
/**
*
*/
private $not_usable;
#[ORM\Column(type: 'datetime', nullable: true)]
private $date_planted;
#[ORM\Column(type: 'datetime', nullable: true)]
private $date_harvest_start;
#[ORM\Column(type: 'datetime', nullable: true)]
private $date_harvest_planned;
#[ORM\Column(type: 'datetime', nullable: true)]
private $date_harvested;
#[ORM\Column(type: 'datetime', nullable: true)]
private $date_in_patch;
#[ORM\Column(type: 'string', nullable: true)]
private $planting_type;
#[ORM\Column(type: 'datetime', nullable: false)]
private $date_created;
#[ORM\Column(type: 'datetime', nullable: true)]
private $date_updated;
#[ORM\ManyToOne(targetEntity: 'App\Entity\Crop', inversedBy: 'patchCrop')]
#[ORM\JoinColumn(name: 'crop_id', referencedColumnName: 'id')]
private $crop;
#[ORM\ManyToOne(targetEntity: 'App\Entity\Patch', inversedBy: 'patchfield')]
#[ORM\JoinColumn(name: 'patch_id', referencedColumnName: 'id', nullable: false)]
private $patch;
#[ORM\ManyToOne(targetEntity: 'App\Entity\PatchfieldGroup', inversedBy: 'patchfield')]
#[ORM\JoinColumn(name: 'patchfield_group_id', referencedColumnName: 'id')]
private $patchfieldGroup;
public function __clone() {
$this->id = null;
}
public function getId(): ?int
{
return $this->id;
}
public function getPositionX(): ?int
{
return $this->position_x;
}
public function setPositionX(?int $position_x): self
{
$this->position_x = $position_x;
return $this;
}
public function getPositionY(): ?int
{
return $this->position_y;
}
public function setPositionY(?int $position_y): self
{
$this->position_y = $position_y;
return $this;
}
public function getNotUsable(): ?bool
{
return $this->not_usable;
}
public function setNotUsable(?bool $not_usable): self
{
$this->not_usable = $not_usable;
return $this;
}
public function getDatePlanted(): ?\DateTimeInterface
{
return $this->date_planted;
}
public function setDatePlanted(?\DateTimeInterface $date_planted): self
{
$this->date_planted = $date_planted;
return $this;
}
public function getDateCreated(): ?\DateTimeInterface
{
return $this->date_created;
}
public function setDateCreated(\DateTimeInterface $date_created): self
{
$this->date_created = $date_created;
return $this;
}
public function getCrop(): ?Crop
{
return $this->crop;
}
public function setCrop(?Crop $crop): self
{
$this->crop = $crop;
return $this;
}
public function getPatch(): ?Patch
{
return $this->patch;
}
public function setPatch(?Patch $patch): self
{
$this->patch = $patch;
return $this;
}
public function getRow(): ?int
{
return $this->row;
}
public function setRow(?int $row): self
{
$this->row = $row;
return $this;
}
public function getCol(): ?int
{
return $this->col;
}
public function setCol(?int $col): self
{
$this->col = $col;
return $this;
}
public function getReferenceIndex(): ?int
{
return $this->reference_index;
}
public function setReferenceIndex(?int $reference_index): self
{
$this->reference_index = $reference_index;
return $this;
}
public function getNeighbours()
{
return $this->neighbours;
}
public function setNeighbours($neighbours): self
{
$this->neighbours = $neighbours;
return $this;
}
public function getPatchfieldGroup(): ?PatchfieldGroup
{
return $this->patchfieldGroup;
}
public function setPatchfieldGroup(?PatchfieldGroup $patchfieldGroup): self
{
$this->patchfieldGroup = $patchfieldGroup;
return $this;
}
public function getIsBlocked(): ?bool
{
return $this->is_blocked;
}
public function setIsBlocked(?bool $is_blocked): self
{
$this->is_blocked = $is_blocked;
return $this;
}
public function getIsWay(): ?bool
{
return $this->is_way;
}
public function setIsWay(?bool $is_way): self
{
$this->is_way = $is_way;
return $this;
}
public function getCombinedWidth(): ?int
{
return $this->combined_width;
}
public function setCombinedWidth(?int $combined_width): self
{
$this->combined_width = $combined_width;
return $this;
}
public function getCombinedHeight(): ?int
{
return $this->combined_height;
}
public function setCombinedHeight(?int $combined_height): self
{
$this->combined_height = $combined_height;
return $this;
}
public function getDateUpdated(): ?\DateTimeInterface
{
return $this->date_updated;
}
public function setDateUpdated(?\DateTimeInterface $date_updated): self
{
$this->date_updated = $date_updated;
return $this;
}
public function getNoIcon(): ?bool
{
return $this->no_icon;
}
public function setNoIcon(?bool $no_icon): self
{
$this->no_icon = $no_icon;
return $this;
}
public function getIsReferenceField(): ?bool
{
return $this->is_reference_field;
}
public function setIsReferenceField(?bool $is_reference_field): self
{
$this->is_reference_field = $is_reference_field;
return $this;
}
public function getCurrentDay(): ?int
{
return $this->current_day;
}
public function setCurrentDay(?int $current_day): self
{
$this->current_day = $current_day;
return $this;
}
public function getDateLastUpdate(): ?\DateTimeInterface
{
return $this->date_last_update;
}
public function setDateLastUpdate(?\DateTimeInterface $date_last_update): self
{
$this->date_last_update = $date_last_update;
return $this;
}
public function getFieldIndex(): ?int
{
return $this->field_index;
}
public function setFieldIndex(?int $field_index): self
{
$this->field_index = $field_index;
return $this;
}
public function getStatus(): ?string
{
return $this->status;
}
public function setStatus(?string $status): self
{
$this->status = $status;
return $this;
}
public function getDateHarvestPlanned(): ?\DateTimeInterface
{
return $this->date_harvest_planned;
}
public function setDateHarvestPlanned(?\DateTimeInterface $date_harvest_planned): self
{
$this->date_harvest_planned = $date_harvest_planned;
return $this;
}
public function getDateHarvested(): ?\DateTimeInterface
{
return $this->date_harvested;
}
public function setDateHarvested(?\DateTimeInterface $date_harvested): self
{
$this->date_harvested = $date_harvested;
return $this;
}
public function getDatePlantingPlanned(): ?\DateTimeInterface
{
return $this->date_planting_planned;
}
public function setDatePlantingPlanned(?\DateTimeInterface $date_planting_planned): self
{
$this->date_planting_planned = $date_planting_planned;
return $this;
}
public function getShape(): ?string
{
return $this->shape;
}
public function setShape(?string $shape): self
{
$this->shape = $shape;
return $this;
}
public function getWidth(): ?int
{
return $this->width;
}
public function setWidth(?int $width): self
{
$this->width = $width;
return $this;
}
public function getLength(): ?int
{
return $this->length;
}
public function setLength(?int $length): self
{
$this->length = $length;
return $this;
}
public function getDiameter(): ?int
{
return $this->diameter;
}
public function setDiameter(?int $diameter): self
{
$this->diameter = $diameter;
return $this;
}
public function getDateHarvestStart(): ?\DateTimeInterface
{
return $this->date_harvest_start;
}
public function setDateHarvestStart(?\DateTimeInterface $date_harvest_start): self
{
$this->date_harvest_start = $date_harvest_start;
return $this;
}
public function getDateInPatch(): ?\DateTimeInterface
{
return $this->date_in_patch;
}
public function setDateInPatch(?\DateTimeInterface $date_in_patch): self
{
$this->date_in_patch = $date_in_patch;
return $this;
}
public function getPlantingType(): ?string
{
return $this->planting_type;
}
public function setPlantingType(?string $planting_type): self
{
$this->planting_type = $planting_type;
return $this;
}
}