Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
overlapconfig.php
1
<?php
2
3
namespace
Bitrix\Sender\Integration\Yandex\Toloka\DTO
;
4
5
class
OverlapConfig
implements
TolokaTransferObject
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
}
Bitrix\Sender\Integration\Yandex\Toloka\DTO\OverlapConfig
Definition
overlapconfig.php:6
Bitrix\Sender\Integration\Yandex\Toloka\DTO\OverlapConfig\getMinConfidence
getMinConfidence()
Definition
overlapconfig.php:75
Bitrix\Sender\Integration\Yandex\Toloka\DTO\OverlapConfig\getAnswerWeightSkill
getAnswerWeightSkill()
Definition
overlapconfig.php:95
Bitrix\Sender\Integration\Yandex\Toloka\DTO\OverlapConfig\setMinConfidence
setMinConfidence(float $minConfidence)
Definition
overlapconfig.php:85
Bitrix\Sender\Integration\Yandex\Toloka\DTO\OverlapConfig\getMaxOverlap
getMaxOverlap()
Definition
overlapconfig.php:55
Bitrix\Sender\Integration\Yandex\Toloka\DTO\OverlapConfig\toArray
toArray()
Definition
overlapconfig.php:132
Bitrix\Sender\Integration\Yandex\Toloka\DTO\OverlapConfig\getType
getType()
Definition
overlapconfig.php:35
Bitrix\Sender\Integration\Yandex\Toloka\DTO\OverlapConfig\setMaxOverlap
setMaxOverlap(int $maxOverlap)
Definition
overlapconfig.php:65
Bitrix\Sender\Integration\Yandex\Toloka\DTO\OverlapConfig\setAnswerWeightSkill
setAnswerWeightSkill(int $answerWeightSkill)
Definition
overlapconfig.php:105
Bitrix\Sender\Integration\Yandex\Toloka\DTO\OverlapConfig\setFields
setFields(array $fields)
Definition
overlapconfig.php:125
Bitrix\Sender\Integration\Yandex\Toloka\DTO\OverlapConfig\setType
setType(string $type)
Definition
overlapconfig.php:45
Bitrix\Sender\Integration\Yandex\Toloka\DTO\OverlapConfig\getFields
getFields()
Definition
overlapconfig.php:115
Bitrix\Sender\Integration\Yandex\Toloka\DTO\TolokaTransferObject
Definition
tolokatransferobject.php:6
Bitrix\Sender\Integration\Yandex\Toloka\DTO
modules
sender
lib
integration
yandex
toloka
dto
overlapconfig.php
Создано системой
1.10.0