Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
task.php
1
<?php
2
3
namespace
Bitrix\Sender\Integration\Yandex\Toloka\DTO
;
4
5
class
Task
implements
TolokaTransferObject
6
{
10
private
$id;
11
15
private
$poolId;
16
20
private
$inputValues;
24
private
$overlap = 3;
25
29
public
function
getId
(): int
30
{
31
return
$this->id;
32
}
33
39
public
function
setId
(
int
$id):
Task
40
{
41
$this->
id
= $id;
42
43
return
$this;
44
}
45
49
public
function
getPoolId
(): int
50
{
51
return
$this->poolId;
52
}
53
59
public
function
setPoolId
(
int
$poolId):
Task
60
{
61
$this->poolId = $poolId;
62
63
return
$this;
64
}
65
69
public
function
getInputValues
():
InputValue
70
{
71
return
$this->inputValues;
72
}
73
79
public
function
setInputValues
(
InputValue
$inputValues):
Task
80
{
81
$this->inputValues = $inputValues;
82
83
return
$this;
84
}
85
89
public
function
getOverlap
(): int
90
{
91
return
$this->overlap;
92
}
93
99
public
function
setOverlap
(
int
$overlap):
Task
100
{
101
$this->overlap = $overlap;
102
103
return
$this;
104
}
105
109
public
function
getPool
():
Pool
110
{
111
return
$this->pool;
112
}
113
119
public
function
setPool
(
Pool
$pool):
Task
120
{
121
$this->pool = $pool;
122
123
return
$this;
124
}
125
126
public
function
toArray
(): array
127
{
128
129
return
[
130
'pool_id'
=> $this->poolId,
131
'overlap'
=> $this->overlap,
132
'input_values'
=> $this->inputValues->toArray()
133
];
134
}
135
}
Bitrix\Sender\Integration\Yandex\Toloka\DTO\InputValue
Definition
inputvalue.php:6
Bitrix\Sender\Integration\Yandex\Toloka\DTO\Pool
Definition
pool.php:6
Bitrix\Sender\Integration\Yandex\Toloka\DTO\Task
Definition
task.php:6
Bitrix\Sender\Integration\Yandex\Toloka\DTO\Task\getPool
getPool()
Definition
task.php:109
Bitrix\Sender\Integration\Yandex\Toloka\DTO\Task\getId
getId()
Definition
task.php:29
Bitrix\Sender\Integration\Yandex\Toloka\DTO\Task\getOverlap
getOverlap()
Definition
task.php:89
Bitrix\Sender\Integration\Yandex\Toloka\DTO\Task\setOverlap
setOverlap(int $overlap)
Definition
task.php:99
Bitrix\Sender\Integration\Yandex\Toloka\DTO\Task\getPoolId
getPoolId()
Definition
task.php:49
Bitrix\Sender\Integration\Yandex\Toloka\DTO\Task\toArray
toArray()
Definition
task.php:126
Bitrix\Sender\Integration\Yandex\Toloka\DTO\Task\setPool
setPool(Pool $pool)
Definition
task.php:119
Bitrix\Sender\Integration\Yandex\Toloka\DTO\Task\setInputValues
setInputValues(InputValue $inputValues)
Definition
task.php:79
Bitrix\Sender\Integration\Yandex\Toloka\DTO\Task\setPoolId
setPoolId(int $poolId)
Definition
task.php:59
Bitrix\Sender\Integration\Yandex\Toloka\DTO\Task\getInputValues
getInputValues()
Definition
task.php:69
Bitrix\Sender\Integration\Yandex\Toloka\DTO\Task\setId
setId(int $id)
Definition
task.php:39
Bitrix\Sender\Integration\Yandex\Toloka\DTO\TolokaTransferObject
Definition
tolokatransferobject.php:6
Bitrix\Sender\Integration\Yandex\Toloka\DTO
modules
sender
lib
integration
yandex
toloka
dto
task.php
Создано системой
1.10.0