| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 22 | public function toObject(\stdClass $jsonString, bool $isOrQuery = false) |
||
| 23 | { |
||
| 24 | $name = JsonUtil::getString($json, "name"); |
||
| 25 | $value = JsonUtil::getRawObject($json, "value"); |
||
| 26 | $operator = constant("QueryOperator::", JsonUtil::getString($json, "operator")); |
||
| 27 | $isTaskVariable = JsonUtil::getBoolean($json, "taskVariable"); |
||
| 28 | $isProcessVariable = JsonUtil::getBoolean($json, "processVariable"); |
||
| 29 | return new TaskQueryVariableValue($name, $value, $operator, $isTaskVariable, $isProcessVariable); |
||
| 30 | } |
||
| 32 |