Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
taskspec.php
1<?php
2
4
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}