2declare(strict_types=1);
4namespace Bitrix\Landing\Copilot\Data\Node;
6use Bitrix\Landing\Copilot\Data\Type\NodeType;
10 protected const TYPE = NodeType::Link;
12 private ?
array $texts;
14 private ?
array $target;
15 private ?
array $genderData =
null;
20 $this->texts =
$data[
'values'] ?? [];
21 $this->href =
$data[
'href'] ?? [
'#'];
22 $this->target =
$data[
'target'] ?? [
'_blank'];
27 $data = parent::toArray();
39 if (isset(
$data[
'genderData']))
41 $this->genderData =
$data[
'genderData'];
48 foreach ($this->texts as
$text)
52 'href' => $this->href[0],
53 'target' => $this->target[0],
57 return $nodeDataArray;
62 $this->texts = $texts;
67 $this->genderData = $genderData;
75 return $this->genderData;
setGenderData(array $genderData)
__construct(string $code, array $data)
getValues(?int $position=null)
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
if(!is_null($config))($config as $configItem)(! $configItem->isVisible()) $code