Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
taskspecassembler.php
1
<?php
2
namespace
Bitrix\Sender\Integration\Yandex\Toloka\DTO\Assembler
;
3
4
use
Bitrix\Main\HttpRequest
;
5
use
Bitrix\Sender\Integration\Yandex\Toloka\DTO\TaskSpec
;
6
use
Bitrix\Sender\Integration\Yandex\Toloka\DTO\TolokaTransferObject
;
7
8
class
TaskSpecAssembler
implements
Assembler
9
{
10
16
public
static
function
toDTO
(
HttpRequest
$request)
17
{
18
$taskSpec =
new
TaskSpec
();
19
$inputSpec =
InputSpecAssembler::toDTO
($request);
20
$outputSpec =
OutputSpecAssembler::toDTO
($request);
21
$viewSpec =
ViewSpecAssembler::toDTO
($request);
22
23
$taskSpec->setInputSpec($inputSpec);
24
$taskSpec->setOutputSpec($outputSpec);
25
$taskSpec->setViewSpec($viewSpec);
26
27
return
$taskSpec;
28
}
29
}
Bitrix\Main\HttpRequest
Definition
httprequest.php:20
Bitrix\Sender\Integration\Yandex\Toloka\DTO\Assembler\InputSpecAssembler\toDTO
static toDTO(HttpRequest $request)
Definition
inputspecassembler.php:16
Bitrix\Sender\Integration\Yandex\Toloka\DTO\Assembler\OutputSpecAssembler\toDTO
static toDTO(HttpRequest $request)
Definition
outputspecassembler.php:16
Bitrix\Sender\Integration\Yandex\Toloka\DTO\Assembler\TaskSpecAssembler
Definition
taskspecassembler.php:9
Bitrix\Sender\Integration\Yandex\Toloka\DTO\Assembler\TaskSpecAssembler\toDTO
static toDTO(HttpRequest $request)
Definition
taskspecassembler.php:16
Bitrix\Sender\Integration\Yandex\Toloka\DTO\Assembler\ViewSpecAssembler\toDTO
static toDTO(HttpRequest $request)
Definition
viewspecassembler.php:18
Bitrix\Sender\Integration\Yandex\Toloka\DTO\TaskSpec
Definition
taskspec.php:6
Bitrix\Sender\Integration\Yandex\Toloka\DTO\Assembler\Assembler
Definition
assembler.php:8
Bitrix\Sender\Integration\Yandex\Toloka\DTO\TolokaTransferObject
Definition
tolokatransferobject.php:6
Bitrix\Sender\Integration\Yandex\Toloka\DTO\Assembler
Definition
assembler.php:2
modules
sender
lib
integration
yandex
toloka
dto
assembler
taskspecassembler.php
Создано системой
1.10.0