src/Entity/BlockFieldItem.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use phpDocumentor\Reflection\Types\Integer;
  5. use Vich\UploaderBundle\Mapping\Annotation as Vich;
  6. use Symfony\Component\Serializer\Annotation\Groups;
  7. use Symfony\Component\Serializer\Annotation\MaxDepth;
  8. // use App\Entity\Media;
  9. /**
  10.  * @ORM\Entity (repositoryClass="App\Repository\BlockFieldItemRepository")
  11.  */
  12. class BlockFieldItem
  13. {
  14.     /**
  15.      * @ORM\Id()
  16.      * @ORM\GeneratedValue()
  17.      * @ORM\Column(type="integer")
  18.      */
  19.     private $id;
  20.     /**
  21.      * @ORM\Column(type="integer", nullable=true)
  22.      */
  23.     private $ordering;
  24.     /**
  25.      * @MaxDepth(1)
  26.      * @ORM\ManyToOne(targetEntity="App\Entity\BlockField", inversedBy="items")
  27.      * @ORM\JoinColumns({
  28.      *   @ORM\JoinColumn(name="block_field_id", referencedColumnName="id", onDelete="CASCADE")
  29.      * })
  30.      */
  31.     private $blockField;
  32.     /**
  33.      * @ORM\Column(type="json", nullable=true, options={"comment":"Objet type ditem avec donnees"})
  34.      */
  35.     private $itemType;
  36.     /**
  37.      * @ORM\Column(type="json", nullable=true)
  38.      */
  39.     private $criterion;
  40.     /**
  41.      * @ORM\Column(type="json", nullable=true)
  42.      */
  43.     private $modality;
  44.     /**
  45.      * @ORM\Column(type="boolean", nullable=true)
  46.      */
  47.     private $displayCriterionName;
  48.     /**
  49.      * @ORM\Column(type="boolean", nullable=true)
  50.      */
  51.     private $displayModalityName;
  52.     /**
  53.      * @ORM\Column(type="boolean", nullable=true)
  54.      */
  55.     private $displayCriterionValue;
  56.     /**
  57.      * @ORM\Column(type="string", length=255, nullable=true, options={"comment":"Intitulé ou préfixe"})
  58.      */
  59.     private $label;
  60.     /**
  61.      * @ORM\Column(type="json", nullable=true)
  62.      */
  63.     private $labelTranslations;
  64.     /**
  65.      * @ORM\Column(type="json", nullable=true)
  66.      */
  67.     private $displayConditions;
  68.     /**
  69.      * @ORM\Column(type="string", length=255, nullable=true, options={"comment":"Nom de la fonction"})
  70.      */
  71.     private $firstFunction;
  72.     /**
  73.      * @ORM\Column(type="json", nullable=true)
  74.      */
  75.     private $firstFunctionParameters;
  76.     /**
  77.      * @ORM\Column(type="string", length=255, nullable=true, options={"comment":"Nom de la fonction"})
  78.      */
  79.     private $secondFunction;
  80.     /**
  81.      * @ORM\Column(type="json", nullable=true)
  82.      */
  83.     private $secondFunctionParameters;
  84.     /**
  85.      * @ORM\Column(type="string", length=255, nullable=true, options={"comment":"Nom de la fonction"})
  86.      */
  87.     private $thirdFunction;
  88.     /**
  89.      * @ORM\Column(type="json", nullable=true)
  90.      */
  91.     private $thirdFunctionParameters;
  92.     /**
  93.      * @ORM\Column(type="json", nullable=true, options={"comment":"Icône CSS type fontAwesome"})
  94.      */
  95.     private $iconClass;
  96.     /**
  97.      * @ORM\Column(type="text", nullable=true, options={"comment":"Exemple de rendu front-end"})
  98.      */
  99.     private $example;
  100.     /**
  101.      * @MaxDepth (1)
  102.      * @var \Media|null
  103.      * @ORM\ManyToOne (targetEntity="App\Entity\Media", inversedBy="blockFields")
  104.      * @ORM\JoinColumns ({
  105.      *   @ORM\JoinColumn(name="media_id", referencedColumnName="id")
  106.      * })
  107.      */
  108.     #[ApiProperty(iris: ['http://schema.org/image'])]
  109.     private $image;
  110.     /**
  111.      * @MaxDepth(1)
  112.      * @ORM\ManyToOne(targetEntity="App\Entity\User", inversedBy="blockFieldItems")
  113.      * @ORM\JoinColumns({
  114.      *   @ORM\JoinColumn(name="owner_id", referencedColumnName="id")
  115.      * })
  116.      */
  117.     private $owner;
  118.     /**
  119.      * @MaxDepth(1)
  120.      * @ORM\ManyToOne(targetEntity="App\Entity\DnsitEntity", inversedBy="blockFieldItems")
  121.      * @ORM\JoinColumns({
  122.      *   @ORM\JoinColumn(name="entity_id", referencedColumnName="id")
  123.      * })
  124.      */
  125.     private $entity;
  126.     /**
  127.      * @ORM\Column(type="datetime", nullable=true)
  128.      */
  129.     private $createdAt;
  130.     /**
  131.      * @ORM\Column(type="datetime", nullable=true)
  132.      */
  133.     private $updatedAt;
  134.     /**
  135.      * @ORM\Column(type="integer", nullable=true, options={"default":0, "comment":"code de statut : 0=OK"})
  136.      */
  137.     private $state;
  138.     /**
  139.      * @ORM\Column(type="string", length=255, nullable=true, options={"comment":"ET ou OU logique, null = OU"})
  140.      */
  141.     private $conditionEtOu;
  142.     /**
  143.      * @ORM\Column(type="json", nullable=true)
  144.      */
  145.     private $extraData;
  146.     /**
  147.      * @ORM\Column(type="json", nullable=true)
  148.      */
  149.     private $dateTimeFormat;
  150.     /**
  151.      * @ORM\Column(type="integer", nullable=true, options={"default":0, "comment":"Limiter l'affichage à X sous-items"})
  152.      */
  153.     private $maxSubItemsToDisplay;
  154.     /**
  155.      * @ORM\Column(type="boolean", nullable=true, options={"default":0, "comment":"Si plusieurs valeurs min et max, ne montrer que le plus pett mini et le plus grand maxi"})
  156.      */
  157.     private $showOnlyLowestMinAndHighestMax;
  158.     public function getId() : ?int
  159.     {
  160.         return $this->id;
  161.     }
  162.     public function getItemType() : ?array
  163.     {
  164.         return $this->itemType;
  165.     }
  166.     public function setItemType(?array $itemType) : self
  167.     {
  168.         $this->itemType $itemType;
  169.         return $this;
  170.     }
  171.     public function getLabel() : ?string
  172.     {
  173.         return $this->label;
  174.     }
  175.     public function setLabel(?string $label) : self
  176.     {
  177.         $this->label $label;
  178.         return $this;
  179.     }
  180.     public function getLabelTranslations() : ?array
  181.     {
  182.         return $this->labelTranslations;
  183.     }
  184.     public function setLabelTranslations(?array $labelTranslations) : self
  185.     {
  186.         $this->labelTranslations $labelTranslations;
  187.         return $this;
  188.     }
  189.     public function getIconClass() : ?array
  190.     {
  191.         return $this->iconClass;
  192.     }
  193.     public function setIconClass(?array $iconClass) : self
  194.     {
  195.         $this->iconClass $iconClass;
  196.         return $this;
  197.     }
  198.     public function getCreatedAt() : ?\DateTimeInterface
  199.     {
  200.         return $this->createdAt;
  201.     }
  202.     public function setCreatedAt(?\DateTimeInterface $createdAt) : self
  203.     {
  204.         $this->createdAt $createdAt;
  205.         return $this;
  206.     }
  207.     public function getUpdatedAt() : ?\DateTimeInterface
  208.     {
  209.         return $this->updatedAt;
  210.     }
  211.     public function setUpdatedAt(?\DateTimeInterface $updatedAt) : self
  212.     {
  213.         $this->updatedAt $updatedAt;
  214.         return $this;
  215.     }
  216.     public function getState() : ?int
  217.     {
  218.         return $this->state;
  219.     }
  220.     public function setState(?int $state) : self
  221.     {
  222.         $this->state $state;
  223.         return $this;
  224.     }
  225.     public function getBlockField() : ?BlockField
  226.     {
  227.         return $this->blockField;
  228.     }
  229.     public function setBlockField(?BlockField $blockField) : self
  230.     {
  231.         $this->blockField $blockField;
  232.         return $this;
  233.     }
  234.     public function getFirstFunction() : ?string
  235.     {
  236.         return $this->firstFunction;
  237.     }
  238.     public function setFirstFunction(?string $firstFunction) : self
  239.     {
  240.         $this->firstFunction $firstFunction;
  241.         return $this;
  242.     }
  243.     public function getSecondFunction() : ?string
  244.     {
  245.         return $this->secondFunction;
  246.     }
  247.     public function setSecondFunction(?string $secondFunction) : self
  248.     {
  249.         $this->secondFunction $secondFunction;
  250.         return $this;
  251.     }
  252.     public function getThirdFunction() : ?string
  253.     {
  254.         return $this->thirdFunction;
  255.     }
  256.     public function setThirdFunction(?string $thirdFunction) : self
  257.     {
  258.         $this->thirdFunction $thirdFunction;
  259.         return $this;
  260.     }
  261.     public function getImage() : ?Media
  262.     {
  263.         return $this->image;
  264.     }
  265.     public function setImage(?Media $image) : self
  266.     {
  267.         $this->image $image;
  268.         return $this;
  269.     }
  270.     public function getOwner() : ?User
  271.     {
  272.         return $this->owner;
  273.     }
  274.     public function setOwner(?User $owner) : self
  275.     {
  276.         $this->owner $owner;
  277.         return $this;
  278.     }
  279.     public function getEntity() : ?DnsitEntity
  280.     {
  281.         return $this->entity;
  282.     }
  283.     public function setEntity(?DnsitEntity $entity) : self
  284.     {
  285.         $this->entity $entity;
  286.         return $this;
  287.     }
  288.     public function getOrdering() : ?int
  289.     {
  290.         return $this->ordering;
  291.     }
  292.     public function setOrdering(int $ordering) : self
  293.     {
  294.         $this->ordering $ordering;
  295.         return $this;
  296.     }
  297.     public function getCriterion() : ?array
  298.     {
  299.         return $this->criterion;
  300.     }
  301.     public function setCriterion(?array $criterion) : self
  302.     {
  303.         $this->criterion $criterion;
  304.         return $this;
  305.     }
  306.     public function getDisplayConditions() : ?array
  307.     {
  308.         return $this->displayConditions;
  309.     }
  310.     public function setDisplayConditions(?array $displayConditions) : self
  311.     {
  312.         $this->displayConditions $displayConditions;
  313.         return $this;
  314.     }
  315.     public function getModality() : ?array
  316.     {
  317.         return $this->modality;
  318.     }
  319.     public function setModality(?array $modality) : self
  320.     {
  321.         $this->modality $modality;
  322.         return $this;
  323.     }
  324.     public function getExample() : ?string
  325.     {
  326.         return $this->example;
  327.     }
  328.     public function setExample(?string $example) : self
  329.     {
  330.         $this->example $example;
  331.         return $this;
  332.     }
  333.     public function getDisplayCriterionName() : ?bool
  334.     {
  335.         return $this->displayCriterionName;
  336.     }
  337.     public function setDisplayCriterionName(?bool $displayCriterionName) : self
  338.     {
  339.         $this->displayCriterionName $displayCriterionName;
  340.         return $this;
  341.     }
  342.     public function getDisplayModalityName() : ?bool
  343.     {
  344.         return $this->displayModalityName;
  345.     }
  346.     public function setDisplayModalityName(?bool $displayModalityName) : self
  347.     {
  348.         $this->displayModalityName $displayModalityName;
  349.         return $this;
  350.     }
  351.     public function getDisplayCriterionValue() : ?bool
  352.     {
  353.         return $this->displayCriterionValue;
  354.     }
  355.     public function setDisplayCriterionValue(?bool $displayCriterionValue) : self
  356.     {
  357.         $this->displayCriterionValue $displayCriterionValue;
  358.         return $this;
  359.     }
  360.     public function getFirstFunctionParameters() : ?array
  361.     {
  362.         return $this->firstFunctionParameters;
  363.     }
  364.     public function setFirstFunctionParameters(?array $firstFunctionParameters) : self
  365.     {
  366.         $this->firstFunctionParameters $firstFunctionParameters;
  367.         return $this;
  368.     }
  369.     public function getSecondFunctionParameters() : ?array
  370.     {
  371.         return $this->secondFunctionParameters;
  372.     }
  373.     public function setSecondFunctionParameters(?array $secondFunctionParameters) : self
  374.     {
  375.         $this->secondFunctionParameters $secondFunctionParameters;
  376.         return $this;
  377.     }
  378.     public function getThirdFunctionParameters() : ?array
  379.     {
  380.         return $this->thirdFunctionParameters;
  381.     }
  382.     public function setThirdFunctionParameters(?array $thirdFunctionParameters) : self
  383.     {
  384.         $this->thirdFunctionParameters $thirdFunctionParameters;
  385.         return $this;
  386.     }
  387.     public function getConditionEtOu() : ?string
  388.     {
  389.         return $this->conditionEtOu;
  390.     }
  391.     public function setConditionEtOu(?string $conditionEtOu) : self
  392.     {
  393.         $this->conditionEtOu $conditionEtOu;
  394.         return $this;
  395.     }
  396.     public function getExtraData() : ?array
  397.     {
  398.         return $this->extraData;
  399.     }
  400.     public function setExtraData(?array $extraData) : self
  401.     {
  402.         $this->extraData $extraData;
  403.         return $this;
  404.     }
  405.     public function getDateTimeFormat() : ?array
  406.     {
  407.         return $this->dateTimeFormat;
  408.     }
  409.     public function setDateTimeFormat(?array $dateTimeFormat) : self
  410.     {
  411.         $this->dateTimeFormat $dateTimeFormat;
  412.         return $this;
  413.     }
  414.     public function getMaxSubItemsToDisplay() : ?int
  415.     {
  416.         return $this->maxSubItemsToDisplay;
  417.     }
  418.     public function setMaxSubItemsToDisplay(?int $maxSubItemsToDisplay) : self
  419.     {
  420.         $this->maxSubItemsToDisplay $maxSubItemsToDisplay;
  421.         return $this;
  422.     }
  423.     public function getShowOnlyLowestMinAndHighestMax() : ?bool
  424.     {
  425.         return $this->showOnlyLowestMinAndHighestMax;
  426.     }
  427.     public function setShowOnlyLowestMinAndHighestMax(?bool $showOnlyLowestMinAndHighestMax) : self
  428.     {
  429.         $this->showOnlyLowestMinAndHighestMax $showOnlyLowestMinAndHighestMax;
  430.         return $this;
  431.     }
  432. }