src/Model/ViewOrderInfo/ViewOrderInfo.php line 15

Open in your IDE?
  1. <?php
  2. namespace App\Model\ViewOrderInfo;
  3. use App\Form\CustomerConstraints\IsExtendedCustomerConstraintBuilder;
  4. use App\Model\Field\Field;
  5. use App\Model\FieldType\FieldType;
  6. use App\Model\Traits\ImportableObjectTrait;
  7. use App\Model\ViewOrder\ViewOrder;
  8. use Doctrine\Common\Collections\ArrayCollection;
  9. use Doctrine\Common\Collections\Collection;
  10. use Symfony\Component\Serializer\Annotation\Groups;
  11. use Symfony\Component\Serializer\Annotation\MaxDepth;
  12. class ViewOrderInfo
  13. {
  14.     const FIELD_KEY_VIEW_BY_FIELD_KEY = [
  15.         'updateBy' => 'updatedByRealName',
  16.         'tva' => 'tva.value',
  17.         'taskType' => 'taskType.name',
  18.         'structureType' => 'structureType.value',
  19.         'status' => 'status.name',
  20.         'service' => 'service.value',
  21.         'prospectType' => 'prospectType.value',
  22.         'type' => 'prospectType.value',
  23.         'prospectId' => 'prospectFullName',
  24.         'origin' => 'origin.value',
  25.         'managedBy' => 'managedByRealName',
  26.         'legalForm' => 'legalForm.value',
  27.         'createdBy' => 'createdByRealName',
  28.         'contacts' => 'contactsFormatted',
  29.         'contactId' => 'contactIdRealName',
  30.         'contact_civility' => 'contact.civility.value',
  31.         'company_workforce' => 'company.workforce.value',
  32.         'company_structureType' => 'company.structureType.value',
  33.         'company_naf' => 'company.naf.label',
  34.         'company_legalForm' => 'company.legalForm.value',
  35.         'civility' => 'civility.value',
  36.     ];
  37.     const VALUE_TYPE_RICH_TEXT 'html';
  38.     use ImportableObjectTrait;
  39.     /**
  40.      * @var string|null
  41.      * @Groups({"list_view_order", "show_view_order", "new_view_order"})
  42.      */
  43.     private $id;
  44.     /**
  45.      * @var string|null
  46.      * @Groups({"list_view_order", "show_view_order", "new_view_order", "ViewOrder:create", "ViewOrder:update"})
  47.      */
  48.     private $viewOrderType;
  49.     /**
  50.      * @var bool|null
  51.      * @Groups({"list_view_order", "show_view_order", "new_view_order", "ViewOrder:create", "ViewOrder:update"})
  52.      */
  53.     private $groupe false;
  54.     /**
  55.      * @var string|null
  56.      * @Groups({"list_view_order", "show_view_order", "new_view_order", "ViewOrder:create", "ViewOrder:update"})
  57.      */
  58.     private $type;
  59.     /**
  60.      * @var string|null
  61.      * @Groups({"list_view_order", "show_view_order", "new_view_order", "ViewOrder:create", "ViewOrder:update"})
  62.      */
  63.     private $displayWidth;
  64.     /**
  65.      * @var string|null
  66.      * @Groups({"list_view_order", "show_view_order", "new_view_order", "ViewOrder:create", "ViewOrder:update"})
  67.      */
  68.     private $displayLabel;
  69.     /**
  70.      * @var string|null
  71.      * @Groups({"list_view_order", "show_view_order", "new_view_order", "ViewOrder:create", "ViewOrder:update"})
  72.      */
  73.     private $ordre;
  74.     /**
  75.      * @var bool|null
  76.      * @Groups({"list_view_order", "show_view_order", "new_view_order", "ViewOrder:create", "ViewOrder:update"})
  77.      */
  78.     private $isRequired false;
  79.     /**
  80.      * @var bool|null
  81.      * @Groups({"list_view_order", "show_view_order", "new_view_order", "ViewOrder:create", "ViewOrder:update"})
  82.      */
  83.     private $isUnique false;
  84.     /**
  85.      * @var bool|null
  86.      * @Groups({"list_view_order", "show_view_order", "new_view_order", "ViewOrder:create", "ViewOrder:update"})
  87.      */
  88.     private $isReadOnly false;
  89.     /**
  90.      * @var bool|null
  91.      * @Groups({"list_view_order", "show_view_order", "new_view_order", "ViewOrder:create", "ViewOrder:update"})
  92.      */
  93.     private $isEmail false;
  94.     /**
  95.      * @var bool|null
  96.      * @Groups({"list_view_order", "show_view_order", "new_view_order", "ViewOrder:create", "ViewOrder:update"})
  97.      */
  98.     private $isHidden false;
  99.     /**
  100.      * @var bool|null
  101.      * @Groups({"list_view_order", "show_view_order", "new_view_order", "ViewOrder:create", "ViewOrder:update"})
  102.      */
  103.     private $hasPersonnalData false;
  104.     /**
  105.      * @var string|null
  106.      * @Groups({"list_view_order", "show_view_order", "new_view_order", "ViewOrder:create", "ViewOrder:update"})
  107.      */
  108.     private $fieldKey;
  109.     /**
  110.      * @var Field|null
  111.      * @Groups({"list_view_order", "show_view_order", "new_view_order", "ViewOrder:create", "ViewOrder:update"})
  112.      */
  113.     private $specificField;
  114.     /**
  115.      * @var string|null
  116.      * @Groups({"list_view_order", "show_view_order", "new_view_order", "ViewOrder:create", "ViewOrder:update"})
  117.      */
  118.     private $fieldKeyView;
  119.     /**
  120.      * @var string|null
  121.      * @Groups({"list_view_order", "show_view_order", "new_view_order", "ViewOrder:create", "ViewOrder:update"})
  122.      */
  123.     private $valueType;
  124.     /**
  125.      * @var ViewOrder|null
  126.      * @MaxDepth(1)
  127.      * @Groups({"list_view_order", "show_view_order", "new_view_order", "ViewOrder:update"})
  128.      */
  129.     private $viewOrder;
  130.     /**
  131.      * @var ViewOrderInfo|null
  132.      * @MaxDepth(1)
  133.      * @Groups({"list_view_order", "show_view_order", "new_view_order", "ViewOrder:create", "ViewOrder:update"})
  134.      */
  135.     private $parent;
  136.     /**
  137.      * @var bool|null
  138.      * @Groups({"list_view_order", "show_view_order", "new_view_order", "ViewOrder:create", "ViewOrder:update"})
  139.      */
  140.     private $isSpecificField false;
  141.     /**
  142.      * @var ViewOrderInfo[]|Collection|null
  143.      * @MaxDepth(1)
  144.      * @Groups({"list_view_order", "show_view_order", "new_view_order", "ViewOrder:create", "ViewOrder:update"})
  145.      */
  146.     private $viewOrderInfos;
  147.     /**
  148.      * @var bool
  149.      * @Groups({"list_view_order", "show_view_order", "new_view_order", "ViewOrder:create", "ViewOrder:update"})
  150.      */
  151.     private $isExtended false;
  152.     /**
  153.      * @var string|null
  154.      * @Groups({"list_view_order", "show_view_order", "new_view_order"})
  155.      */
  156.     private $conditionField;
  157.     /**
  158.      * @var string|null
  159.      * @Groups({"list_view_order", "show_view_order", "new_view_order"})
  160.      */
  161.     private $conditionValue;
  162.     /**
  163.      * @var bool
  164.      * @Groups({"list_view_order", "show_view_order", "new_view_order", "ViewOrder:create", "ViewOrder:update"})
  165.      */
  166.     private $isParentField false;
  167.     /**
  168.      * @var bool
  169.      * @Groups({"list_view_order", "show_view_order", "new_view_order", "ViewOrder:create", "ViewOrder:update"})
  170.      */
  171.     public $isUrl false;
  172.     /**
  173.      * ViewOrderInfo constructor.
  174.      */
  175.     public function __construct()
  176.     {
  177.         $this->viewOrderInfos = new ArrayCollection();
  178.     }
  179.     /**
  180.      * @return array
  181.      */
  182.     public function format(): array
  183.     {
  184.         $commonFormat = [
  185.             'id' => $this->getId(),
  186.             'label' => $this->getDisplayLabel(),
  187.             'width' => $this->getDisplayWidth(),
  188.             'order' => $this->getOrdre(),
  189.             'key' => $this->getFieldKey(),
  190.             'hasPersonnalData' => $this->getHasPersonnalData(),
  191.             'isRequired' => $this->getIsRequired(),
  192.             'isReadOnly' => $this->isReadOnly(),
  193.             IsExtendedCustomerConstraintBuilder::IS_EXTENDED => $this->isExtended(),
  194.             'isEmail' => $this->isEmail(),
  195.             'isSpecificField' => $this->getIsSpecificField(),
  196.             'specificFieldType' => $this->getSpecificField() instanceof Field
  197.             && $this->getSpecificField()->getFieldType() instanceof FieldType ?
  198.                 $this->getSpecificField()->getFieldType()->getType() : null,
  199.             'isUnique' => $this->getIsUnique(),
  200.             'isHidden' => $this->getIsHidden(),
  201.             'type' => $this->getType(),
  202.             'viewKey' => $this->getFieldKeyView(),
  203.             'valueType' => $this->getValueType(),
  204.             'isGroup' => $this->getGroupe(),
  205.             'fields' => $this->getViewOrderInfos()->map(function (ViewOrderInfo $viewOrderInfo) {
  206.                 return $viewOrderInfo->format();
  207.             })->toArray(),
  208.             'conditionField' => $this->getConditionField(),
  209.             'conditionValue' => $this->getConditionValue(),
  210.             'isParentField' => $this->isParentField(),
  211.             'isUrl' => $this->isUrl(),
  212.         ];
  213.         if (empty($commonFormat['viewKey'])) {
  214.             unset($commonFormat['viewKey']);
  215.         }
  216.         if (empty($commonFormat['key'])) {
  217.             unset($commonFormat['key']);
  218.         }
  219.         if (empty($commonFormat['type'])) {
  220.             unset($commonFormat['type']);
  221.         }
  222.         if (empty($commonFormat['valueType'])) {
  223.             unset($commonFormat['valueType']);
  224.         }
  225.         if (!$commonFormat['isGroup']) {
  226.             unset($commonFormat['fields']);
  227.         }
  228.         return $commonFormat;
  229.     }
  230.     /**
  231.      * @param array  $data
  232.      * @param string $type
  233.      *
  234.      * @return ViewOrderInfo
  235.      */
  236.     public function buildFromArray(array $datastring $type): ViewOrderInfo
  237.     {
  238.         $this
  239.             ->setId(empty($data['isNew']) ? $data['id'] ?? null null)
  240.             ->setDisplayLabel($data['label'] ?? null)
  241.             ->setDisplayWidth($data['width'])
  242.             ->setOrdre($data['order'])
  243.             ->setIsRequired(boolval($data['isRequired'] ?? false))
  244.             ->setIsReadOnly(boolval($data['isReadOnly'] ?? false))
  245.             ->setIsExtended(boolval($data[IsExtendedCustomerConstraintBuilder::IS_EXTENDED] ?? false))
  246.             ->setIsEmail(boolval($data['isEmail'] ?? false))
  247.             ->setIsSpecificField(boolval($data['isSpecificField'] ?? false))
  248.             ->setHasPersonnalData(boolval($data['hasPersonnalData'] ?? false))
  249.             ->setIsUnique(boolval($data['isUnique'] ?? false))
  250.             ->setIsHidden(boolval($data['isHidden'] ?? false))
  251.             ->setIsUrl(boolval($data['isUrl'] ?? false))
  252.             ->setFieldKey($data['key'] ?? null)
  253.             ->setType($data['type'] ?? null)
  254.             ->setFieldKeyView($data['viewKey'] ?? null)
  255.             ->setValueType($data['valueType'] ?? null)
  256.             ->setViewOrderType($type)
  257.             ->setConditionField($data['conditionField'] ?? null)
  258.             ->setConditionValue($data['conditionValue'] ?? null)
  259.             ->setIsParentField($data['isParentField'] ?? false)
  260.             ->setGroupe($data['isGroup'] ?? $this->getGroupe())
  261.         ;
  262.         if (key_exists('fields'$data)) {
  263.             foreach ($data['fields'] as $field) {
  264.                 $this->addViewOrderInfo((new ViewOrderInfo())->buildFromArray($field$type));
  265.             }
  266.         }
  267.         return $this;
  268.     }
  269.     /**
  270.      * @return string
  271.      */
  272.     public function getId()
  273.     {
  274.         return $this->id;
  275.     }
  276.     /**
  277.      * @param string $id
  278.      *
  279.      * @return ViewOrderInfo
  280.      */
  281.     public function setId($id)
  282.     {
  283.         $this->id $id;
  284.         return $this;
  285.     }
  286.     /**
  287.      * @return string|null
  288.      */
  289.     public function getViewOrderType(): ?string
  290.     {
  291.         return $this->viewOrderType;
  292.     }
  293.     /**
  294.      * @param string|null $viewOrderType
  295.      *
  296.      * @return ViewOrderInfo
  297.      */
  298.     public function setViewOrderType(?string $viewOrderType): ViewOrderInfo
  299.     {
  300.         $this->viewOrderType $viewOrderType;
  301.         return $this;
  302.     }
  303.     /**
  304.      * @return bool|null
  305.      */
  306.     public function getGroupe(): ?bool
  307.     {
  308.         return $this->groupe;
  309.     }
  310.     /**
  311.      * @param bool|null $group
  312.      *
  313.      * @return ViewOrderInfo
  314.      */
  315.     public function setGroupe(?bool $group): ViewOrderInfo
  316.     {
  317.         $this->groupe $group;
  318.         return $this;
  319.     }
  320.     /**
  321.      * @return string|null
  322.      */
  323.     public function getDisplayWidth(): ?string
  324.     {
  325.         return $this->displayWidth;
  326.     }
  327.     /**
  328.      * @param string|null $displayWidth
  329.      *
  330.      * @return ViewOrderInfo
  331.      */
  332.     public function setDisplayWidth(?string $displayWidth): ViewOrderInfo
  333.     {
  334.         $this->displayWidth $displayWidth;
  335.         return $this;
  336.     }
  337.     /**
  338.      * @return string|null
  339.      */
  340.     public function getDisplayLabel(): ?string
  341.     {
  342.         return $this->displayLabel;
  343.     }
  344.     /**
  345.      * @param string|null $displayLabel
  346.      *
  347.      * @return ViewOrderInfo
  348.      */
  349.     public function setDisplayLabel(?string $displayLabel): ViewOrderInfo
  350.     {
  351.         $this->displayLabel $displayLabel;
  352.         return $this;
  353.     }
  354.     /**
  355.      * @return string|null
  356.      */
  357.     public function getFieldKey(): ?string
  358.     {
  359.         return $this->fieldKey;
  360.     }
  361.     /**
  362.      * @param string|null $fieldKey
  363.      *
  364.      * @return ViewOrderInfo
  365.      */
  366.     public function setFieldKey(?string $fieldKey): ViewOrderInfo
  367.     {
  368.         $this->fieldKey $fieldKey;
  369.         return $this;
  370.     }
  371.     /**
  372.      * @return ViewOrder|null
  373.      */
  374.     public function getViewOrder(): ?ViewOrder
  375.     {
  376.         return $this->viewOrder;
  377.     }
  378.     /**
  379.      * @param ViewOrder|null $viewOrder
  380.      *
  381.      * @return ViewOrderInfo
  382.      */
  383.     public function setViewOrder($viewOrder): ViewOrderInfo
  384.     {
  385.         $this->viewOrder $viewOrder;
  386.         return $this;
  387.     }
  388.     /**
  389.      * @return ViewOrderInfo|null
  390.      */
  391.     public function getParent(): ?ViewOrderInfo
  392.     {
  393.         return $this->parent;
  394.     }
  395.     /**
  396.      * @param ViewOrderInfo|null $parent
  397.      *
  398.      * @return ViewOrderInfo
  399.      */
  400.     public function setParent(?ViewOrderInfo $parent): ViewOrderInfo
  401.     {
  402.         $this->parent $parent;
  403.         return $this;
  404.     }
  405.     /**
  406.      * @return ViewOrderInfo[]|Collection|null
  407.      */
  408.     public function getViewOrderInfos(): ?Collection
  409.     {
  410.         return $this->viewOrderInfos;
  411.     }
  412.     /**
  413.      * Add a children viewOrderInfo object.
  414.      *
  415.      * @param ViewOrderInfo $children
  416.      */
  417.     public function addViewOrderInfo(ViewOrderInfo $children)
  418.     {
  419.         if (!$this->getViewOrderInfos()->contains($children)) {
  420.             $children->setParent($this);
  421.             $this->getViewOrderInfos()->add($children);
  422.         }
  423.     }
  424.     /**
  425.      * Remove a children viewOrderInfo object.
  426.      *
  427.      * @param ViewOrderInfo $children
  428.      */
  429.     public function removeViewOrderInfo(ViewOrderInfo $children)
  430.     {
  431.         if ($this->getViewOrderInfos()->contains($children)) {
  432.             $children->setParent(null);
  433.             $this->getViewOrderInfos()->removeElement($children);
  434.         }
  435.     }
  436.     /**
  437.      * @param $viewOrderInfos
  438.      *
  439.      * @return $this
  440.      */
  441.     public function setViewOrderInfos($viewOrderInfos): self
  442.     {
  443.         $this->viewOrderInfos $viewOrderInfos;
  444.         return $this;
  445.     }
  446.     /**
  447.      * @return string|null
  448.      */
  449.     public function getOrdre(): ?string
  450.     {
  451.         return $this->ordre;
  452.     }
  453.     /**
  454.      * @param string|null $ordre
  455.      *
  456.      * @return ViewOrderInfo
  457.      */
  458.     public function setOrdre(?string $ordre): ViewOrderInfo
  459.     {
  460.         $this->ordre $ordre;
  461.         return $this;
  462.     }
  463.     /**
  464.      * @return string|null
  465.      */
  466.     public function getType(): ?string
  467.     {
  468.         return $this->type;
  469.     }
  470.     /**
  471.      * @param string|null $type
  472.      *
  473.      * @return ViewOrderInfo
  474.      */
  475.     public function setType(?string $type): ViewOrderInfo
  476.     {
  477.         $this->type $type;
  478.         return $this;
  479.     }
  480.     /**
  481.      * @return string|null
  482.      */
  483.     public function getFieldKeyView(): ?string
  484.     {
  485.         if (null === $this->fieldKeyView
  486.             && null !== $this->getFieldKey()
  487.             && isset(self::FIELD_KEY_VIEW_BY_FIELD_KEY[$this->getFieldKey()])
  488.         ) {
  489.             return self::FIELD_KEY_VIEW_BY_FIELD_KEY[$this->getFieldKey()];
  490.         }
  491.         return $this->fieldKeyView;
  492.     }
  493.     /**
  494.      * @param string|null $fieldKeyView
  495.      *
  496.      * @return ViewOrderInfo
  497.      */
  498.     public function setFieldKeyView(?string $fieldKeyView): ViewOrderInfo
  499.     {
  500.         $this->fieldKeyView $fieldKeyView;
  501.         return $this;
  502.     }
  503.     /**
  504.      * @return string|null
  505.      */
  506.     public function getValueType(): ?string
  507.     {
  508.         return $this->valueType;
  509.     }
  510.     /**
  511.      * @param string|null $valueType
  512.      *
  513.      * @return ViewOrderInfo
  514.      */
  515.     public function setValueType(?string $valueType): ViewOrderInfo
  516.     {
  517.         $this->valueType $valueType;
  518.         return $this;
  519.     }
  520.     /**
  521.      * @return bool|null
  522.      */
  523.     public function getIsRequired(): ?bool
  524.     {
  525.         return $this->isRequired;
  526.     }
  527.     /**
  528.      * @param bool|null $isRequired
  529.      *
  530.      * @return ViewOrderInfo
  531.      */
  532.     public function setIsRequired(?bool $isRequired): ViewOrderInfo
  533.     {
  534.         $this->isRequired $isRequired;
  535.         return $this;
  536.     }
  537.     /**
  538.      * @return bool|null
  539.      */
  540.     public function getIsUnique(): ?bool
  541.     {
  542.         return $this->isUnique;
  543.     }
  544.     /**
  545.      * @param bool|null $isUnique
  546.      *
  547.      * @return ViewOrderInfo
  548.      */
  549.     public function setIsUnique(?bool $isUnique): ViewOrderInfo
  550.     {
  551.         $this->isUnique $isUnique;
  552.         return $this;
  553.     }
  554.     /**
  555.      * @return string|null
  556.      */
  557.     public function isSpecificField(): ?bool
  558.     {
  559.         return $this->isSpecificField || $this->getSpecificField() instanceof Field;
  560.     }
  561.     /**
  562.      * @return string|null
  563.      */
  564.     public function getIsSpecificField(): ?bool
  565.     {
  566.         return $this->isSpecificField;
  567.     }
  568.     /**
  569.      * @param bool|null $isSpecificField
  570.      *
  571.      * @return ViewOrderInfo
  572.      */
  573.     public function setIsSpecificField(?bool $isSpecificField): ViewOrderInfo
  574.     {
  575.         $this->isSpecificField $isSpecificField;
  576.         return $this;
  577.     }
  578.     /**
  579.      * @return Field|null
  580.      */
  581.     public function getSpecificField(): ?Field
  582.     {
  583.         return $this->specificField;
  584.     }
  585.     /**
  586.      * @param Field|null $specificField
  587.      *
  588.      * @return ViewOrderInfo
  589.      */
  590.     public function setSpecificField(?Field $specificField): ViewOrderInfo
  591.     {
  592.         $this->specificField $specificField;
  593.         return $this;
  594.     }
  595.     /**
  596.      * @return bool|null
  597.      */
  598.     public function getIsHidden(): ?bool
  599.     {
  600.         return $this->isHidden;
  601.     }
  602.     /**
  603.      * @param bool|null $isHidden
  604.      *
  605.      * @return ViewOrderInfo
  606.      */
  607.     public function setIsHidden(?bool $isHidden): ViewOrderInfo
  608.     {
  609.         $this->isHidden $isHidden;
  610.         return $this;
  611.     }
  612.     /**
  613.      * @return bool|null
  614.      */
  615.     public function getHasPersonnalData(): ?bool
  616.     {
  617.         return $this->hasPersonnalData;
  618.     }
  619.     /**
  620.      * @param bool|null $hasPersonnalData
  621.      *
  622.      * @return ViewOrderInfo
  623.      */
  624.     public function setHasPersonnalData(?bool $hasPersonnalData): ViewOrderInfo
  625.     {
  626.         $this->hasPersonnalData $hasPersonnalData;
  627.         return $this;
  628.     }
  629.     /**
  630.      * @return bool|null
  631.      */
  632.     public function isReadOnly(): ?bool
  633.     {
  634.         return $this->isReadOnly;
  635.     }
  636.     /**
  637.      * @param bool|null $isReadOnly
  638.      *
  639.      * @return ViewOrderInfo
  640.      */
  641.     public function setIsReadOnly(?bool $isReadOnly): ViewOrderInfo
  642.     {
  643.         $this->isReadOnly $isReadOnly;
  644.         return $this;
  645.     }
  646.     /**
  647.      * @return bool|null
  648.      */
  649.     public function isEmail(): ?bool
  650.     {
  651.         return $this->isEmail;
  652.     }
  653.     /**
  654.      * @param bool|null $isEmail
  655.      *
  656.      * @return ViewOrderInfo
  657.      */
  658.     public function setIsEmail(?bool $isEmail): self
  659.     {
  660.         $this->isEmail $isEmail;
  661.         return $this;
  662.     }
  663.     /**
  664.      * @return bool
  665.      */
  666.     public function isExtended(): bool
  667.     {
  668.         return $this->isExtended;
  669.     }
  670.     /**
  671.      * @param bool $isExtended
  672.      *
  673.      * @return ViewOrderInfo
  674.      */
  675.     public function setIsExtended(bool $isExtended): self
  676.     {
  677.         $this->isExtended $isExtended;
  678.         return $this;
  679.     }
  680.     /**
  681.      * @return string|null
  682.      */
  683.     public function getConditionField(): ?string
  684.     {
  685.         return $this->conditionField;
  686.     }
  687.     /**
  688.      * @param string|null $conditionField
  689.      *
  690.      * @return ViewOrderInfo
  691.      */
  692.     public function setConditionField(?string $conditionField): self
  693.     {
  694.         $this->conditionField $conditionField;
  695.         return $this;
  696.     }
  697.     /**
  698.      * @return string|null
  699.      */
  700.     public function getConditionValue(): ?string
  701.     {
  702.         return $this->conditionValue;
  703.     }
  704.     /**
  705.      * @param string|null $conditionValue
  706.      *
  707.      * @return ViewOrderInfo
  708.      */
  709.     public function setConditionValue(?string $conditionValue): self
  710.     {
  711.         $this->conditionValue $conditionValue;
  712.         return $this;
  713.     }
  714.     /**
  715.      * @return bool
  716.      */
  717.     public function isParentField(): bool
  718.     {
  719.         return $this->isParentField;
  720.     }
  721.     /**
  722.      * @param bool $isParentField
  723.      *
  724.      * @return ViewOrderInfo
  725.      */
  726.     public function setIsParentField(bool $isParentField): self
  727.     {
  728.         $this->isParentField $isParentField;
  729.         return $this;
  730.     }
  731.     public function isUrl(): bool
  732.     {
  733.         return $this->isUrl;
  734.     }
  735.     public function setIsUrl(bool $isUrl): self
  736.     {
  737.         $this->isUrl $isUrl;
  738.         return $this;
  739.     }
  740. }