EvaluateOutput
extends Message
in package
EvaluateOutput is the output message for the EvaluateExpr method.
Generated from protobuf message exprml.v1.EvaluateOutput
Table of Contents
Methods
- __construct() : mixed
- Constructor.
- clearErrorPath() : mixed
- clearValue() : mixed
- getErrorMessage() : string
- Error message if status is not OK.
- getErrorPath() : Path|null
- Error path if status is not OK.
- getStatus() : int
- Status of the evaluation.
- getValue() : Value|null
- Result of the evaluation.
- hasErrorPath() : mixed
- hasValue() : mixed
- setErrorMessage() : $this
- Error message if status is not OK.
- setErrorPath() : $this
- Error path if status is not OK.
- setStatus() : $this
- Status of the evaluation.
- setValue() : $this
- Result of the evaluation.
Methods
__construct()
Constructor.
public
__construct([array<string|int, mixed> $data = NULL ]) : mixed
Parameters
- $data : array<string|int, mixed> = NULL
-
{ Optional. Data for populating the Message object.
@type int $status Status of the evaluation. @type string $error_message Error message if status is not OK. @type \Exprml\PB\Exprml\V1\Expr\Path $error_path Error path if status is not OK. @type \Exprml\PB\Exprml\V1\Value $value Result of the evaluation.
}
clearErrorPath()
public
clearErrorPath() : mixed
clearValue()
public
clearValue() : mixed
getErrorMessage()
Error message if status is not OK.
public
getErrorMessage() : string
Generated from protobuf field string error_message = 2 [json_name = "errorMessage"];
Return values
stringgetErrorPath()
Error path if status is not OK.
public
getErrorPath() : Path|null
Generated from protobuf field .exprml.v1.Expr.Path error_path = 3 [json_name = "errorPath"];
Return values
Path|nullgetStatus()
Status of the evaluation.
public
getStatus() : int
Generated from protobuf field .exprml.v1.EvaluateOutput.Status status = 1 [json_name = "status"];
Return values
intgetValue()
Result of the evaluation.
public
getValue() : Value|null
Generated from protobuf field .exprml.v1.Value value = 4 [json_name = "value"];
Return values
Value|nullhasErrorPath()
public
hasErrorPath() : mixed
hasValue()
public
hasValue() : mixed
setErrorMessage()
Error message if status is not OK.
public
setErrorMessage(string $var) : $this
Generated from protobuf field string error_message = 2 [json_name = "errorMessage"];
Parameters
- $var : string
Return values
$thissetErrorPath()
Error path if status is not OK.
public
setErrorPath(Path $var) : $this
Generated from protobuf field .exprml.v1.Expr.Path error_path = 3 [json_name = "errorPath"];
Parameters
- $var : Path
Return values
$thissetStatus()
Status of the evaluation.
public
setStatus(int $var) : $this
Generated from protobuf field .exprml.v1.EvaluateOutput.Status status = 1 [json_name = "status"];
Parameters
- $var : int
Return values
$thissetValue()
Result of the evaluation.
public
setValue(Value $var) : $this
Generated from protobuf field .exprml.v1.Value value = 4 [json_name = "value"];
Parameters
- $var : Value