Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
taskspec.php
1
<?php
2
3
namespace
Bitrix\Sender\Integration\Yandex\Toloka\DTO
;
4
5
class
TaskSpec
implements
TolokaTransferObject
6
{
10
private
$inputSpec;
11
15
private
$outputSpec;
16
20
private
$viewSpec;
21
25
public
function
getInputSpec
():
InputOutputSpec
26
{
27
return
$this->inputSpec;
28
}
29
35
public
function
setInputSpec
(
InputOutputSpec
$inputSpec):
TaskSpec
36
{
37
$this->inputSpec = $inputSpec;
38
39
return
$this;
40
}
41
45
public
function
getOutputSpec
():
InputOutputSpec
46
{
47
return
$this->outputSpec;
48
}
49
55
public
function
setOutputSpec
(
InputOutputSpec
$outputSpec):
TaskSpec
56
{
57
$this->outputSpec = $outputSpec;
58
59
return
$this;
60
}
61
65
public
function
getViewSpec
():
ViewSpec
66
{
67
return
$this->viewSpec;
68
}
69
75
public
function
setViewSpec
(
ViewSpec
$viewSpec):
TaskSpec
76
{
77
$this->viewSpec = $viewSpec;
78
79
return
$this;
80
}
81
82
public
function
toArray
():array
83
{
84
return
[
85
'input_spec'
=> $this->inputSpec->toArray(),
86
'output_spec'
=> $this->outputSpec->toArray(),
87
'view_spec'
=> $this->viewSpec->toArray()
88
];
89
}
90
}
Bitrix\Sender\Integration\Yandex\Toloka\DTO\InputOutputSpec
Definition
inputoutputspec.php:6
Bitrix\Sender\Integration\Yandex\Toloka\DTO\TaskSpec
Definition
taskspec.php:6
Bitrix\Sender\Integration\Yandex\Toloka\DTO\TaskSpec\setOutputSpec
setOutputSpec(InputOutputSpec $outputSpec)
Definition
taskspec.php:55
Bitrix\Sender\Integration\Yandex\Toloka\DTO\TaskSpec\getInputSpec
getInputSpec()
Definition
taskspec.php:25
Bitrix\Sender\Integration\Yandex\Toloka\DTO\TaskSpec\getOutputSpec
getOutputSpec()
Definition
taskspec.php:45
Bitrix\Sender\Integration\Yandex\Toloka\DTO\TaskSpec\toArray
toArray()
Definition
taskspec.php:82
Bitrix\Sender\Integration\Yandex\Toloka\DTO\TaskSpec\setViewSpec
setViewSpec(ViewSpec $viewSpec)
Definition
taskspec.php:75
Bitrix\Sender\Integration\Yandex\Toloka\DTO\TaskSpec\getViewSpec
getViewSpec()
Definition
taskspec.php:65
Bitrix\Sender\Integration\Yandex\Toloka\DTO\TaskSpec\setInputSpec
setInputSpec(InputOutputSpec $inputSpec)
Definition
taskspec.php:35
Bitrix\Sender\Integration\Yandex\Toloka\DTO\ViewSpec
Definition
viewspec.php:6
Bitrix\Sender\Integration\Yandex\Toloka\DTO\TolokaTransferObject
Definition
tolokatransferobject.php:6
Bitrix\Sender\Integration\Yandex\Toloka\DTO
modules
sender
lib
integration
yandex
toloka
dto
taskspec.php
Создано системой
1.10.0