| @@ 220-230 (lines=11) @@ | ||
| 217 | * @return $this |
|
| 218 | * @throws ArgumentNotNumericException |
|
| 219 | */ |
|
| 220 | public function setContext($context) |
|
| 221 | { |
|
| 222 | if (!is_numeric($context)) { |
|
| 223 | $errMsg = sprintf('Аргумент должен быть числом. Актуальное значение %s', $context); |
|
| 224 | throw new ArgumentNotNumericException($errMsg); |
|
| 225 | } |
|
| 226 | ||
| 227 | $this->context = (integer)$context; |
|
| 228 | ||
| 229 | return $this; |
|
| 230 | } |
|
| 231 | ||
| 232 | /** |
|
| 233 | * Возвращает поле |
|
| @@ 249-259 (lines=11) @@ | ||
| 246 | * @return $this |
|
| 247 | * @throws ArgumentNotNumericException |
|
| 248 | */ |
|
| 249 | public function setField($field) |
|
| 250 | { |
|
| 251 | if (!is_numeric($field)) { |
|
| 252 | $errMsg = sprintf('Аргумент должен быть числом. Актуальное значение %s', $field); |
|
| 253 | throw new ArgumentNotNumericException($errMsg); |
|
| 254 | } |
|
| 255 | ||
| 256 | $this->field = (integer)$field; |
|
| 257 | ||
| 258 | return $this; |
|
| 259 | } |
|
| 260 | ||
| 261 | /** |
|
| 262 | * Возвращает оператор |
|
| @@ 278-288 (lines=11) @@ | ||
| 275 | * @return $this |
|
| 276 | * @throws ArgumentNotNumericException |
|
| 277 | */ |
|
| 278 | public function setOperator($operator) |
|
| 279 | { |
|
| 280 | if (!is_numeric($operator)) { |
|
| 281 | $errMsg = sprintf('Аргумент должен быть числом. Актуальное значение %s', $operator); |
|
| 282 | throw new ArgumentNotNumericException($errMsg); |
|
| 283 | } |
|
| 284 | ||
| 285 | $this->operator = (integer)$operator; |
|
| 286 | ||
| 287 | return $this; |
|
| 288 | } |
|
| 289 | ||
| 290 | ||
| 291 | ||
| @@ 85-95 (lines=11) @@ | ||
| 82 | * @return $this |
|
| 83 | * @throws ArgumentNotNumericException |
|
| 84 | */ |
|
| 85 | public function setExpressionOperator($expressionOperator) |
|
| 86 | { |
|
| 87 | if (!is_numeric($expressionOperator)) { |
|
| 88 | $errMsg = sprintf('Аргумент должен быть числом. Актуальное значение %s', $expressionOperator); |
|
| 89 | throw new ArgumentNotNumericException($errMsg); |
|
| 90 | } |
|
| 91 | ||
| 92 | $this->expressionOperator = (integer)$expressionOperator; |
|
| 93 | ||
| 94 | return $this; |
|
| 95 | } |
|
| 96 | ||
| 97 | /** |
|
| 98 | * Возвращает выражения |
|
| @@ 103-114 (lines=12) @@ | ||
| 100 | * |
|
| 101 | * @throws ArgumentNotNumericException |
|
| 102 | */ |
|
| 103 | public function setActionId($actionId) |
|
| 104 | { |
|
| 105 | if ($actionId !== null) { |
|
| 106 | if (!is_numeric($actionId)) { |
|
| 107 | $errMsg = sprintf('Аргумент должен быть числом. Актуальное значение %s', $actionId); |
|
| 108 | throw new ArgumentNotNumericException($errMsg); |
|
| 109 | } |
|
| 110 | $this->actionId = (integer)$actionId; |
|
| 111 | } |
|
| 112 | ||
| 113 | return $this; |
|
| 114 | } |
|
| 115 | ||
| 116 | /** |
|
| 117 | * Возвращает id действия |
|
| @@ 180-190 (lines=11) @@ | ||
| 177 | * |
|
| 178 | * @throws ArgumentNotNumericException |
|
| 179 | */ |
|
| 180 | public function setEntryId($entryId) |
|
| 181 | { |
|
| 182 | if (!is_numeric($entryId)) { |
|
| 183 | $errMsg = sprintf('Аргумент должен быть числом. Актуальное значение %s', $entryId); |
|
| 184 | throw new ArgumentNotNumericException($errMsg); |
|
| 185 | } |
|
| 186 | ||
| 187 | $this->entryId = (integer)$entryId; |
|
| 188 | ||
| 189 | return $this; |
|
| 190 | } |
|
| 191 | ||
| 192 | /** |
|
| 193 | * Возвращает id экземпляра workflow |
|
| @@ 232-240 (lines=9) @@ | ||
| 229 | * |
|
| 230 | * @throws ArgumentNotNumericException |
|
| 231 | */ |
|
| 232 | public function setId($id) |
|
| 233 | { |
|
| 234 | if (!is_numeric($id)) { |
|
| 235 | $errMsg = sprintf('Аргумент должен быть числом. Актуальное значение %s', $id); |
|
| 236 | throw new ArgumentNotNumericException($errMsg); |
|
| 237 | } |
|
| 238 | $this->id = (integer)$id; |
|
| 239 | return $this; |
|
| 240 | } |
|
| 241 | ||
| 242 | /** |
|
| 243 | * Возвращает id шага |
|
| @@ 351-360 (lines=10) @@ | ||
| 348 | * |
|
| 349 | * @throws ArgumentNotNumericException |
|
| 350 | */ |
|
| 351 | public function setStepId($stepId) |
|
| 352 | { |
|
| 353 | if (!is_numeric($stepId)) { |
|
| 354 | $errMsg = sprintf('Аргумент должен быть числом. Актуальное значение %s', $stepId); |
|
| 355 | throw new ArgumentNotNumericException($errMsg); |
|
| 356 | } |
|
| 357 | $this->stepId = (integer)$stepId; |
|
| 358 | ||
| 359 | return $this; |
|
| 360 | } |
|
| 361 | ||
| 362 | /** |
|
| 363 | * Возвращает id шгага |
|
| @@ 76-85 (lines=10) @@ | ||
| 73 | * |
|
| 74 | * @throws ArgumentNotNumericException |
|
| 75 | */ |
|
| 76 | public function setId($id) |
|
| 77 | { |
|
| 78 | if (!is_numeric($id)) { |
|
| 79 | $errMsg = sprintf('Аргумент должен быть числом. Актуальное значение %s', $id); |
|
| 80 | throw new ArgumentNotNumericException($errMsg); |
|
| 81 | } |
|
| 82 | $this->id = (integer)$id; |
|
| 83 | ||
| 84 | return $this; |
|
| 85 | } |
|
| 86 | ||
| 87 | /** |
|
| 88 | * Устанавливает флаг указывающий на то что сущность была иницилизирована |
|
| @@ 128-137 (lines=10) @@ | ||
| 125 | * @return $this |
|
| 126 | * @throws ArgumentNotNumericException |
|
| 127 | */ |
|
| 128 | public function setState($state) |
|
| 129 | { |
|
| 130 | if (!is_numeric($state)) { |
|
| 131 | $errMsg = sprintf('Аргумент должен быть числом. Актуальное значение %s', $state); |
|
| 132 | throw new ArgumentNotNumericException($errMsg); |
|
| 133 | } |
|
| 134 | $this->state = (integer)$state; |
|
| 135 | ||
| 136 | return $this; |
|
| 137 | } |
|
| 138 | ||
| 139 | ||
| 140 | /** |
|