Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
task.php
1<?php
2
4
5class 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}
setInputValues(InputValue $inputValues)
Definition task.php:79