src/Entity/CRM/ProductHistory.php line 11

  1. <?php
  2. namespace App\Entity\CRM;
  3. use App\Repository\ProductHistoryRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassProductHistoryRepository::class)]
  7. #[ORM\HasLifecycleCallbacks]
  8. class ProductHistory
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column]
  13.     private ?int $id null;
  14.     #[ORM\ManyToOne(targetEntityProduct::class)]
  15.     #[ORM\JoinColumn(nullablefalse)]
  16.     private ?Product $product null;
  17.     #[ORM\Column(length255nullabletrue)]
  18.     private ?string $name null;
  19.     #[ORM\Column(nullabletrue)]
  20.     private ?float $priceSubtotal null;
  21.     #[ORM\Column(nullabletrue)]
  22.     private ?bool $implementation null;
  23.     #[ORM\Column(nullabletrue)]
  24.     private ?bool $parent null;
  25.     #[ORM\Column(nullabletrue)]
  26.     private ?bool $eumowa null;
  27.     #[ORM\Column(nullabletrue)]
  28.     private ?bool $umowa null;
  29.     #[ORM\Column(nullabletrue)]
  30.     private ?bool $eumowabiuro null;
  31.     #[ORM\Column(nullabletrue)]
  32.     private ?bool $eumowarodobhp null;
  33.     #[ORM\Column(nullabletrue)]
  34.     private ?bool $eumowaiod null;
  35.     #[ORM\Column(nullabletrue)]
  36.     private ?bool $eumowabdo null;
  37.     #[ORM\Column(nullabletrue)]
  38.     private ?bool $eumowabhpstacjonarna null;
  39.     #[ORM\Column(nullabletrue)]
  40.     private ?bool $audytbezpieczenstwa null;
  41.     #[ORM\Column(nullabletrue)]
  42.     private ?bool $sprawozdanie null;
  43.     #[ORM\Column(nullabletrue)]
  44.     private ?bool $doSprawozdania null;
  45.     #[ORM\Column(nullabletrue)]
  46.     private ?int $platformProductId null;
  47.     #[ORM\Column(nullabletrue)]
  48.     private ?int $tax null;
  49.     #[ORM\Column(nullabletrue)]
  50.     private ?bool $isActive null;
  51.     #[ORM\Column(length1500nullabletrue)]
  52.     private ?string $paragraphOfContract null;
  53.     #[ORM\Column(nullabletrue)]
  54.     private ?bool $forBhp null;
  55.     #[ORM\Column(nullabletrue)]
  56.     private ?bool $forBR null;
  57.     #[ORM\Column(nullabletrue)]
  58.     private ?bool $haveMailAttachments null;
  59.     #[ORM\Column(nullabletrue)]
  60.     private ?bool $autoMail null;
  61.     #[ORM\Column(nullabletrue)]
  62.     private ?bool $additionalCourses null;
  63.     #[ORM\Column(nullabletrue)]
  64.     private ?bool $eumowaamlrodo null;
  65.     #[ORM\Column(nullabletrue)]
  66.     private ?bool $eumowaaml null;
  67.     #[ORM\Column(nullabletrue)]
  68.     private ?bool $transport null;
  69.     #[ORM\Column(nullabletrue)]
  70.     private ?bool $automaticallyDoBeforePayment null;
  71.     #[ORM\Column(nullabletrue)]
  72.     private ?bool $endWithoutAudit null;
  73.     #[ORM\Column(nullabletrue)]
  74.     private ?bool $auditRemote null;
  75.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  76.     private ?\DateTimeInterface $createdAt null;
  77.     #[ORM\ManyToOne]
  78.     #[ORM\JoinColumn(nullabletrue)]
  79.     private ?Admin $changedBy null;
  80.     #[ORM\Column(length50)]
  81.     private ?string $action null;
  82.     #[ORM\Column(typeTypes::JSONnullabletrue)]
  83.     private ?array $categoryIds null;
  84.     #[ORM\Column(nullabletrue)]
  85.     private ?int $contractTemplateId null;
  86.     #[ORM\Column(typeTypes::JSONnullabletrue)]
  87.     private ?array $parentProductIds null;
  88.     #[ORM\Column(typeTypes::JSONnullabletrue)]
  89.     private ?array $adminToInfoIds null;
  90.     #[ORM\Column(nullabletrue)]
  91.     private ?int $agreementId null;
  92.     public function getId(): ?int
  93.     {
  94.         return $this->id;
  95.     }
  96.     public function getProduct(): ?Product
  97.     {
  98.         return $this->product;
  99.     }
  100.     public function setProduct(?Product $product): self
  101.     {
  102.         $this->product $product;
  103.         return $this;
  104.     }
  105.     public function getName(): ?string
  106.     {
  107.         return $this->name;
  108.     }
  109.     public function setName(?string $name): self
  110.     {
  111.         $this->name $name;
  112.         return $this;
  113.     }
  114.     public function getPriceSubtotal(): ?float
  115.     {
  116.         return $this->priceSubtotal;
  117.     }
  118.     public function setPriceSubtotal(?float $priceSubtotal): self
  119.     {
  120.         $this->priceSubtotal $priceSubtotal;
  121.         return $this;
  122.     }
  123.     public function isImplementation(): ?bool
  124.     {
  125.         return $this->implementation;
  126.     }
  127.     public function setImplementation(?bool $implementation): self
  128.     {
  129.         $this->implementation $implementation;
  130.         return $this;
  131.     }
  132.     public function isParent(): ?bool
  133.     {
  134.         return $this->parent;
  135.     }
  136.     public function setParent(?bool $parent): self
  137.     {
  138.         $this->parent $parent;
  139.         return $this;
  140.     }
  141.     public function isEumowa(): ?bool
  142.     {
  143.         return $this->eumowa;
  144.     }
  145.     public function setEumowa(?bool $eumowa): self
  146.     {
  147.         $this->eumowa $eumowa;
  148.         return $this;
  149.     }
  150.     public function isUmowa(): ?bool
  151.     {
  152.         return $this->umowa;
  153.     }
  154.     public function setUmowa(?bool $umowa): self
  155.     {
  156.         $this->umowa $umowa;
  157.         return $this;
  158.     }
  159.     public function isEumowabiuro(): ?bool
  160.     {
  161.         return $this->eumowabiuro;
  162.     }
  163.     public function setEumowabiuro(?bool $eumowabiuro): self
  164.     {
  165.         $this->eumowabiuro $eumowabiuro;
  166.         return $this;
  167.     }
  168.     public function isEumowarodobhp(): ?bool
  169.     {
  170.         return $this->eumowarodobhp;
  171.     }
  172.     public function setEumowarodobhp(?bool $eumowarodobhp): self
  173.     {
  174.         $this->eumowarodobhp $eumowarodobhp;
  175.         return $this;
  176.     }
  177.     public function isEumowaiod(): ?bool
  178.     {
  179.         return $this->eumowaiod;
  180.     }
  181.     public function setEumowaiod(?bool $eumowaiod): self
  182.     {
  183.         $this->eumowaiod $eumowaiod;
  184.         return $this;
  185.     }
  186.     public function isEumowabdo(): ?bool
  187.     {
  188.         return $this->eumowabdo;
  189.     }
  190.     public function setEumowabdo(?bool $eumowabdo): self
  191.     {
  192.         $this->eumowabdo $eumowabdo;
  193.         return $this;
  194.     }
  195.     public function isEumowabhpstacjonarna(): ?bool
  196.     {
  197.         return $this->eumowabhpstacjonarna;
  198.     }
  199.     public function setEumowabhpstacjonarna(?bool $eumowabhpstacjonarna): self
  200.     {
  201.         $this->eumowabhpstacjonarna $eumowabhpstacjonarna;
  202.         return $this;
  203.     }
  204.     public function isAudytbezpieczenstwa(): ?bool
  205.     {
  206.         return $this->audytbezpieczenstwa;
  207.     }
  208.     public function setAudytbezpieczenstwa(?bool $audytbezpieczenstwa): self
  209.     {
  210.         $this->audytbezpieczenstwa $audytbezpieczenstwa;
  211.         return $this;
  212.     }
  213.     public function isSprawozdanie(): ?bool
  214.     {
  215.         return $this->sprawozdanie;
  216.     }
  217.     public function setSprawozdanie(?bool $sprawozdanie): self
  218.     {
  219.         $this->sprawozdanie $sprawozdanie;
  220.         return $this;
  221.     }
  222.     public function isDoSprawozdania(): ?bool
  223.     {
  224.         return $this->doSprawozdania;
  225.     }
  226.     public function setDoSprawozdania(?bool $doSprawozdania): self
  227.     {
  228.         $this->doSprawozdania $doSprawozdania;
  229.         return $this;
  230.     }
  231.     public function getPlatformProductId(): ?int
  232.     {
  233.         return $this->platformProductId;
  234.     }
  235.     public function setPlatformProductId(?int $platformProductId): self
  236.     {
  237.         $this->platformProductId $platformProductId;
  238.         return $this;
  239.     }
  240.     public function getTax(): ?int
  241.     {
  242.         return $this->tax;
  243.     }
  244.     public function setTax(?int $tax): self
  245.     {
  246.         $this->tax $tax;
  247.         return $this;
  248.     }
  249.     public function isIsActive(): ?bool
  250.     {
  251.         return $this->isActive;
  252.     }
  253.     public function setIsActive(?bool $isActive): self
  254.     {
  255.         $this->isActive $isActive;
  256.         return $this;
  257.     }
  258.     public function getParagraphOfContract(): ?string
  259.     {
  260.         return $this->paragraphOfContract;
  261.     }
  262.     public function setParagraphOfContract(?string $paragraphOfContract): self
  263.     {
  264.         $this->paragraphOfContract $paragraphOfContract;
  265.         return $this;
  266.     }
  267.     public function isForBhp(): ?bool
  268.     {
  269.         return $this->forBhp;
  270.     }
  271.     public function setForBhp(?bool $forBhp): self
  272.     {
  273.         $this->forBhp $forBhp;
  274.         return $this;
  275.     }
  276.     public function isForBR(): ?bool
  277.     {
  278.         return $this->forBR;
  279.     }
  280.     public function setForBR(?bool $forBR): self
  281.     {
  282.         $this->forBR $forBR;
  283.         return $this;
  284.     }
  285.     public function isHaveMailAttachments(): ?bool
  286.     {
  287.         return $this->haveMailAttachments;
  288.     }
  289.     public function setHaveMailAttachments(?bool $haveMailAttachments): self
  290.     {
  291.         $this->haveMailAttachments $haveMailAttachments;
  292.         return $this;
  293.     }
  294.     public function isAutoMail(): ?bool
  295.     {
  296.         return $this->autoMail;
  297.     }
  298.     public function setAutoMail(?bool $autoMail): self
  299.     {
  300.         $this->autoMail $autoMail;
  301.         return $this;
  302.     }
  303.     public function isAdditionalCourses(): ?bool
  304.     {
  305.         return $this->additionalCourses;
  306.     }
  307.     public function setAdditionalCourses(?bool $additionalCourses): self
  308.     {
  309.         $this->additionalCourses $additionalCourses;
  310.         return $this;
  311.     }
  312.     public function isEumowaamlrodo(): ?bool
  313.     {
  314.         return $this->eumowaamlrodo;
  315.     }
  316.     public function setEumowaamlrodo(?bool $eumowaamlrodo): self
  317.     {
  318.         $this->eumowaamlrodo $eumowaamlrodo;
  319.         return $this;
  320.     }
  321.     public function isEumowaaml(): ?bool
  322.     {
  323.         return $this->eumowaaml;
  324.     }
  325.     public function setEumowaaml(?bool $eumowaaml): self
  326.     {
  327.         $this->eumowaaml $eumowaaml;
  328.         return $this;
  329.     }
  330.     public function isTransport(): ?bool
  331.     {
  332.         return $this->transport;
  333.     }
  334.     public function setTransport(?bool $transport): self
  335.     {
  336.         $this->transport $transport;
  337.         return $this;
  338.     }
  339.     public function isAutomaticallyDoBeforePayment(): ?bool
  340.     {
  341.         return $this->automaticallyDoBeforePayment;
  342.     }
  343.     public function setAutomaticallyDoBeforePayment(?bool $automaticallyDoBeforePayment): self
  344.     {
  345.         $this->automaticallyDoBeforePayment $automaticallyDoBeforePayment;
  346.         return $this;
  347.     }
  348.     public function isEndWithoutAudit(): ?bool
  349.     {
  350.         return $this->endWithoutAudit;
  351.     }
  352.     public function setEndWithoutAudit(?bool $endWithoutAudit): self
  353.     {
  354.         $this->endWithoutAudit $endWithoutAudit;
  355.         return $this;
  356.     }
  357.     public function isAuditRemote(): ?bool
  358.     {
  359.         return $this->auditRemote;
  360.     }
  361.     public function setAuditRemote(?bool $auditRemote): self
  362.     {
  363.         $this->auditRemote $auditRemote;
  364.         return $this;
  365.     }
  366.     public function getCreatedAt(): ?\DateTimeInterface
  367.     {
  368.         return $this->createdAt;
  369.     }
  370.     public function setCreatedAt(\DateTimeInterface $createdAt): self
  371.     {
  372.         $this->createdAt $createdAt;
  373.         return $this;
  374.     }
  375.     #[ORM\PrePersist]
  376.     public function setCreatedAtValue(): void
  377.     {
  378.         $this->createdAt = new \DateTime();
  379.     }
  380.     public function getChangedBy(): ?Admin
  381.     {
  382.         return $this->changedBy;
  383.     }
  384.     public function setChangedBy(?Admin $changedBy): self
  385.     {
  386.         $this->changedBy $changedBy;
  387.         return $this;
  388.     }
  389.     public function getAction(): ?string
  390.     {
  391.         return $this->action;
  392.     }
  393.     public function setAction(string $action): self
  394.     {
  395.         $this->action $action;
  396.         return $this;
  397.     }
  398.     public function getCategoryIds(): ?array
  399.     {
  400.         return $this->categoryIds;
  401.     }
  402.     public function setCategoryIds(?array $categoryIds): self
  403.     {
  404.         $this->categoryIds $categoryIds;
  405.         return $this;
  406.     }
  407.     public function getContractTemplateId(): ?int
  408.     {
  409.         return $this->contractTemplateId;
  410.     }
  411.     public function setContractTemplateId(?int $contractTemplateId): self
  412.     {
  413.         $this->contractTemplateId $contractTemplateId;
  414.         return $this;
  415.     }
  416.     public function getParentProductIds(): ?array
  417.     {
  418.         return $this->parentProductIds;
  419.     }
  420.     public function setParentProductIds(?array $parentProductIds): self
  421.     {
  422.         $this->parentProductIds $parentProductIds;
  423.         return $this;
  424.     }
  425.     public function getAdminToInfoIds(): ?array
  426.     {
  427.         return $this->adminToInfoIds;
  428.     }
  429.     public function setAdminToInfoIds(?array $adminToInfoIds): self
  430.     {
  431.         $this->adminToInfoIds $adminToInfoIds;
  432.         return $this;
  433.     }
  434.     public function getAgreementId(): ?int
  435.     {
  436.         return $this->agreementId;
  437.     }
  438.     public function setAgreementId(?int $agreementId): self
  439.     {
  440.         $this->agreementId $agreementId;
  441.         return $this;
  442.     }
  443. }