src/Entity/FenceOfferElement.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\FenceOfferElementRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Gedmo\Timestampable\Traits\TimestampableEntity;
  6. /**
  7.  * @ORM\Entity(repositoryClass=FenceOfferElementRepository::class)
  8.  */
  9. class FenceOfferElement
  10. {
  11.     /**
  12.      * Hook timestampable behavior
  13.      * updates createdAt, updatedAt fields
  14.      */
  15.     use TimestampableEntity;
  16.     /**
  17.      * @ORM\Id
  18.      * @ORM\GeneratedValue
  19.      * @ORM\Column(type="integer")
  20.      */
  21.     private $id;
  22.     /**
  23.      * @ORM\ManyToOne(targetEntity=FenceElementDictionary::class)
  24.      * @ORM\JoinColumn(nullable=false)
  25.      */
  26.     private $fenceElement;
  27.     /**
  28.      * @ORM\Column(type="json")
  29.      */
  30.     private $formDataJson = [];
  31.     /**
  32.      * @ORM\ManyToOne(targetEntity=FenceFace::class, inversedBy="fenceOfferElements")
  33.      * @ORM\JoinColumn(nullable=false)
  34.      */
  35.     private $fenceFace;
  36.     /**
  37.      * @ORM\Column(type="string", length=255)
  38.      */
  39.     private $alfenFormLink;
  40.     /**
  41.      * @ORM\Column(type="float")
  42.      */
  43.     private $pricePerUnit;
  44.     /**
  45.      * @ORM\Column(type="integer")
  46.      */
  47.     private $quantity;
  48.     /**
  49.      * @ORM\Column(type="integer", options={"default": 0})
  50.      */
  51.     private $sortOrder;
  52.     /**
  53.      * @ORM\Column(type="string", length=255, nullable=true)
  54.      */
  55.     private $placementOption;
  56.     /**
  57.      * @ORM\Column(type="string", length=255, nullable=true)
  58.      */
  59.     private $placementType;
  60.     /**
  61.      * @ORM\ManyToOne(targetEntity=FenceOfferElement::class)
  62.      * @ORM\JoinColumn(name="placement_point_id", referencedColumnName="id", onDelete="SET NULL")
  63.      */
  64.     private $placementPoint;
  65.     /**
  66.      * @ORM\Column(type="integer", nullable=true)
  67.      */
  68.     private $startPosition;
  69.     /**
  70.      * @ORM\Column(type="integer", nullable=true)
  71.      */
  72.     private $endPosition;
  73.     /**
  74.      * @ORM\Column(type="integer", nullable=true)
  75.      */
  76.     private $length;
  77.     private $lang;
  78.     public function getId(): ?int
  79.     {
  80.         return $this->id;
  81.     }
  82.     public function getFenceElement(): ?FenceElementDictionary
  83.     {
  84.         return $this->fenceElement;
  85.     }
  86.     public function setFenceElement(?FenceElementDictionary $fenceElement): self
  87.     {
  88.         $this->fenceElement $fenceElement;
  89.         return $this;
  90.     }
  91.     public function getFormDataJson(): ?array
  92.     {
  93.         return $this->formDataJson;
  94.     }
  95.     public function setFormDataJson(array $formDataJson): self
  96.     {
  97.         $this->formDataJson $formDataJson;
  98.         return $this;
  99.     }
  100.     public function getFenceFace(): ?FenceFace
  101.     {
  102.         return $this->fenceFace;
  103.     }
  104.     public function setFenceFace(?FenceFace $fenceFace): self
  105.     {
  106.         $this->fenceFace $fenceFace;
  107.         return $this;
  108.     }
  109.     public function getAlfenFormLink(): ?string
  110.     {
  111.         return $this->alfenFormLink;
  112.     }
  113.     public function setAlfenFormLink(string $alfenFormLink): self
  114.     {
  115.         $this->alfenFormLink $alfenFormLink;
  116.         return $this;
  117.     }
  118.     public function getPricePerUnit(): ?float
  119.     {
  120.         return $this->pricePerUnit;
  121.     }
  122.     public function setPricePerUnit(float $pricePerUnit): self
  123.     {
  124.         $this->pricePerUnit $pricePerUnit;
  125.         return $this;
  126.     }
  127.     public function getQuantity(): ?int
  128.     {
  129.         return $this->quantity;
  130.     }
  131.     public function setQuantity(int $quantity): self
  132.     {
  133.         $this->quantity $quantity;
  134.         return $this;
  135.     }
  136.     public function getSortOrder(): ?int
  137.     {
  138.         return $this->sortOrder;
  139.     }
  140.     public function setSortOrder(int $sortOrder): self
  141.     {
  142.         $this->sortOrder $sortOrder;
  143.         return $this;
  144.     }
  145.     public function getPlacementOption(): ?string
  146.     {
  147.         return $this->placementOption;
  148.     }
  149.     public function setPlacementOption(?string $placementOption): self
  150.     {
  151.         $this->placementOption $placementOption;
  152.         return $this;
  153.     }
  154.     public function getPlacementType(): ?string
  155.     {
  156.         return $this->placementType;
  157.     }
  158.     public function setPlacementType(?string $placementType): self
  159.     {
  160.         $this->placementType $placementType;
  161.         return $this;
  162.     }
  163.     public function getPlacementPoint(): ?self
  164.     {
  165.         return $this->placementPoint;
  166.     }
  167.     public function setPlacementPoint(?self $placementPoint): self
  168.     {
  169.         $this->placementPoint $placementPoint;
  170.         return $this;
  171.     }
  172.     public function getStartPosition(): ?int
  173.     {
  174.         return $this->startPosition;
  175.     }
  176.     public function setStartPosition(?int $startPosition): self
  177.     {
  178.         $this->startPosition $startPosition;
  179.         return $this;
  180.     }
  181.     public function getEndPosition(): ?int
  182.     {
  183.         return $this->endPosition;
  184.     }
  185.     public function setEndPosition(?int $endPosition): self
  186.     {
  187.         $this->endPosition $endPosition;
  188.         return $this;
  189.     }
  190.     public function getLength(): ?int
  191.     {
  192.         return $this->length;
  193.     }
  194.     public function setLength(?int $length): self
  195.     {
  196.         $this->length $length;
  197.         return $this;
  198.     }
  199.     public function getLang(): ?string
  200.     {
  201.         return $this->lang;
  202.     }
  203.     public function setLang(?string $lang): self
  204.     {
  205.         $this->lang $lang;
  206.         return $this;
  207.     }
  208. }