src/Entity/Anchor.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\AnchorRepository;
  4. use DH\Auditor\Provider\Doctrine\Auditing\Annotation\Auditable;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * @ORM\Entity(repositoryClass=AnchorRepository::class)
  8.  * @Auditable()
  9.  */
  10. class Anchor
  11. {
  12.     /**
  13.      * @ORM\Id()
  14.      * @ORM\GeneratedValue()
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.       /**
  19.      * @ORM\ManyToOne(targetEntity=FieldGroups::class)
  20.      * @ORM\JoinColumn(nullable=true)
  21.      */
  22.     private $fieldGroup;
  23.     /**
  24.      * @ORM\Column(type="string", length=255)
  25.      */
  26.     private $label;
  27.     /**
  28.      * @ORM\Column(type="boolean")
  29.      */
  30.     private $isDeleted;
  31.     /**
  32.      * @ORM\Column(type="boolean", nullable=true)
  33.      */
  34.     private $isEditable;
  35.     /**
  36.      * @ORM\Column(type="string", length=255, nullable=true)
  37.      */
  38.     private $sourceTable;
  39.     /**
  40.      * @ORM\Column(type="string", length=255, nullable=true)
  41.      */
  42.     private $sourceColumn;
  43.     /**
  44.      * @ORM\Column(type="datetime", nullable=true)
  45.      */
  46.     private $dateCreate;
  47.     /**
  48.      * @ORM\Column(type="datetime", nullable=true)
  49.      */
  50.     private $dateUpdate;
  51.     /**
  52.      * @ORM\ManyToOne(targetEntity=Users::class)
  53.      */
  54.     private $userCreate;
  55.     /**
  56.      * @ORM\ManyToOne(targetEntity=Users::class)
  57.      */
  58.     private $userUpdate;
  59.     /**
  60.      * @ORM\Column(type="string", length=2047, nullable=true)
  61.      */
  62.     private $comment;
  63.     /**
  64.      * @ORM\ManyToOne(targetEntity=DocumentCategory::class)
  65.      * @ORM\JoinColumn(nullable=false)
  66.      */
  67.     private $documentCategory;
  68.     /**
  69.      * @ORM\Column(type="string", length=255, nullable=true)
  70.      */
  71.     private $caption;
  72.     /**
  73.      * @ORM\Column(type="string", length=255, nullable=true)
  74.      */
  75.     private $format;
  76.     /**
  77.      * @ORM\Column(type="text", nullable=true)
  78.      */
  79.     private $listValues;
  80.      /**
  81.      * @ORM\Column(type="text", nullable=true)
  82.      */
  83.     private $constraints;
  84.     
  85.     /**
  86.      * @ORM\Column(type="integer", nullable=true)
  87.      */
  88.     private $priority;
  89.     /**
  90.      * @ORM\Column(type="boolean", nullable=true)
  91.      */
  92.     private $convertInLetter;
  93.     /**
  94.      * @ORM\ManyToOne(targetEntity=Anchor::class)
  95.      */
  96.     private $mainAnchor;
  97.     /**
  98.      * @ORM\Column(type="string", length=255, nullable=true)
  99.      */
  100.     private $mainAnchorProperty;
  101.     /**
  102.      * @ORM\Column(type="boolean", nullable=true)
  103.      */
  104.     private $isDefault;
  105.     /**
  106.      * @ORM\Column(type="text", nullable=true)
  107.      */
  108.     private $defaultValue;
  109.     /**
  110.      * @ORM\Column(type="text", nullable=true)
  111.      */
  112.     private $constraintsFunction;
  113.     /**
  114.      * @ORM\Column(type="boolean", nullable=true)
  115.      */
  116.     private $yearFirstConversion;
  117.     public function __construct()
  118.     {
  119.         $this->isDeleted false;
  120.         $this->dateCreate = new \DateTime();
  121.     }
  122.     public function getId(): ?int
  123.     {
  124.         return $this->id;
  125.     }
  126.     
  127.     public function getFieldGroup(): ?FieldGroups
  128.     {
  129.         return $this->fieldGroup;
  130.     }
  131.     public function setFieldGroup(?FieldGroups $fieldGroup): self
  132.     {
  133.         $this->fieldGroup $fieldGroup;
  134.         return $this;
  135.     }
  136.     public function getLabel(): ?string
  137.     {
  138.         return $this->label;
  139.     }
  140.     public function setLabel(string $label): self
  141.     {
  142.         $this->label $label;
  143.         return $this;
  144.     }
  145.     public function getIsDeleted(): ?bool
  146.     {
  147.         return $this->isDeleted;
  148.     }
  149.     public function setIsDeleted(bool $isDeleted): self
  150.     {
  151.         $this->isDeleted $isDeleted;
  152.         return $this;
  153.     }
  154.     public function getIsEditable(): ?bool
  155.     {
  156.         return $this->isEditable;
  157.     }
  158.     public function setIsEditable(?bool $isEditable): self
  159.     {
  160.         $this->isEditable $isEditable;
  161.         return $this;
  162.     }
  163.     public function getSourceTable(): ?string
  164.     {
  165.         return $this->sourceTable;
  166.     }
  167.     public function setSourceTable(?string $sourceTable): self
  168.     {
  169.         $this->sourceTable $sourceTable;
  170.         return $this;
  171.     }
  172.     public function getSourceColumn(): ?string
  173.     {
  174.         return $this->sourceColumn;
  175.     }
  176.     public function setSourceColumn(?string $sourceColumn): self
  177.     {
  178.         $this->sourceColumn $sourceColumn;
  179.         return $this;
  180.     }
  181.     public function getDateCreate(): ?\DateTimeInterface
  182.     {
  183.         return $this->dateCreate;
  184.     }
  185.     public function setDateCreate(?\DateTimeInterface $dateCreate): self
  186.     {
  187.         $this->dateCreate $dateCreate;
  188.         return $this;
  189.     }
  190.     public function getDateUpdate(): ?\DateTimeInterface
  191.     {
  192.         return $this->dateUpdate;
  193.     }
  194.     public function setDateUpdate(?\DateTimeInterface $dateUpdate): self
  195.     {
  196.         $this->dateUpdate $dateUpdate;
  197.         return $this;
  198.     }
  199.     public function getUserCreate(): ?Users
  200.     {
  201.         return $this->userCreate;
  202.     }
  203.     public function setUserCreate(?Users $userCreate): self
  204.     {
  205.         $this->userCreate $userCreate;
  206.         return $this;
  207.     }
  208.     public function getUserUpdate(): ?Users
  209.     {
  210.         return $this->userUpdate;
  211.     }
  212.     public function setUserUpdate(?Users $userUpdate): self
  213.     {
  214.         $this->userUpdate $userUpdate;
  215.         return $this;
  216.     }
  217.     public function getComment(): ?string
  218.     {
  219.         return $this->comment;
  220.     }
  221.     public function setComment(?string $comment): self
  222.     {
  223.         $this->comment $comment;
  224.         return $this;
  225.     }
  226.     public function getDocumentCategory(): ?DocumentCategory
  227.     {
  228.         return $this->documentCategory;
  229.     }
  230.     public function setDocumentCategory(?DocumentCategory $documentCategory): self
  231.     {
  232.         $this->documentCategory $documentCategory;
  233.         return $this;
  234.     }
  235.     public function getCaption(): ?string
  236.     {
  237.         return $this->caption;
  238.     }
  239.     public function setCaption(?string $caption): self
  240.     {
  241.         $this->caption $caption;
  242.         return $this;
  243.     }
  244.     public function getPriority(): ?int
  245.     {
  246.         return $this->priority;
  247.     }
  248.     public function setPriority(?int $priority): self
  249.     {
  250.         $this->priority $priority;
  251.         return $this;
  252.     }
  253.     public function getFormat(): ?string
  254.     {
  255.         return $this->format;
  256.     }
  257.     public function setFormat(string $format): self
  258.     {
  259.         $this->format $format;
  260.         return $this;
  261.     }
  262.     public function getListValues(): ?string
  263.     {
  264.         return $this->listValues;
  265.     }
  266.     public function setListValues(?string $listValues): self
  267.     {
  268.         $this->listValues $listValues;
  269.         return $this;
  270.     }
  271.     public function getConstraints(): ?string
  272.     {
  273.         return $this->constraints;
  274.     }
  275.     public function setConstraints(?string $constraints): self
  276.     {
  277.         $this->constraints $constraints;
  278.         return $this;
  279.     }
  280.     public function getConvertInLetter(): ?bool
  281.     {
  282.         return $this->convertInLetter;
  283.     }
  284.     public function setConvertInLetter(bool $convertInLetter): self
  285.     {
  286.         $this->convertInLetter $convertInLetter;
  287.         return $this;
  288.     }
  289.     public function getMainAnchor(): ?self
  290.     {
  291.         return $this->mainAnchor;
  292.     }
  293.     public function setMainAnchor(?self $mainAnchor): self
  294.     {
  295.         $this->mainAnchor $mainAnchor;
  296.         return $this;
  297.     }
  298.     public function getMainAnchorProperty(): ?string
  299.     {
  300.         return $this->mainAnchorProperty;
  301.     }
  302.     public function setMainAnchorProperty(?string $mainAnchorProperty): self
  303.     {
  304.         $this->mainAnchorProperty $mainAnchorProperty;
  305.         return $this;
  306.     }
  307.     public function getIsDefault(): ?bool
  308.     {
  309.         return $this->isDefault;
  310.     }
  311.     public function setIsDefault(?bool $isDefault): self
  312.     {
  313.         $this->isDefault $isDefault;
  314.         return $this;
  315.     }
  316.     public function getDefaultValue(): ?string
  317.     {
  318.         return $this->defaultValue;
  319.     }
  320.     public function setDefaultValue(?string $defaultValue): self
  321.     {
  322.         $this->defaultValue $defaultValue;
  323.         return $this;
  324.     }
  325.     public function getConstraintsFunction(): ?string
  326.     {
  327.         return $this->constraintsFunction;
  328.     }
  329.     public function setConstraintsFunction(?string $constraintsFunction): self
  330.     {
  331.         $this->constraintsFunction $constraintsFunction;
  332.         return $this;
  333.     }
  334.     public function getYearFirstConversion(): ?bool
  335.     {
  336.         return $this->yearFirstConversion;
  337.     }
  338.     public function setYearFirstConversion(?bool $yearFirstConversion): self
  339.     {
  340.         $this->yearFirstConversion $yearFirstConversion;
  341.         return $this;
  342.     }
  343.     public function __toString() {
  344.         return $this->label;
  345.     }
  346. }