Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
overlapconfig.php
1<?php
2
4
6{
10 private $type = "BASIC";
11
15 private $maxOverlap;
16
20 private $minConfidence;
21
25 private $answerWeightSkill;
26
30 private $fields;
31
35 public function getType(): string
36 {
37 return $this->type;
38 }
39
45 public function setType(string $type): OverlapConfig
46 {
47 $this->type = $type;
48
49 return $this;
50 }
51
55 public function getMaxOverlap(): int
56 {
57 return $this->maxOverlap;
58 }
59
65 public function setMaxOverlap(int $maxOverlap): OverlapConfig
66 {
67 $this->maxOverlap = $maxOverlap;
68
69 return $this;
70 }
71
75 public function getMinConfidence(): float
76 {
77 return $this->minConfidence;
78 }
79
85 public function setMinConfidence(float $minConfidence): OverlapConfig
86 {
87 $this->minConfidence = $minConfidence;
88
89 return $this;
90 }
91
95 public function getAnswerWeightSkill(): int
96 {
97 return $this->answerWeightSkill;
98 }
99
105 public function setAnswerWeightSkill(int $answerWeightSkill): OverlapConfig
106 {
107 $this->answerWeightSkill = $answerWeightSkill;
108
109 return $this;
110 }
111
115 public function getFields(): array
116 {
117 return $this->fields;
118 }
119
125 public function setFields(array $fields): OverlapConfig
126 {
127 $this->fields = $fields;
128
129 return $this;
130 }
131
132 public function toArray(): array
133 {
134 return [
135 "type" => $this->type,
136 "max_overlap" => $this->maxOverlap,
137 "min_confidence" => $this->minConfidence,
138 "answer_weight_skill_id" => $this->answerWeightSkill,
139 "fields" => $this->fields
140 ];
141 }
142}