PBCase
extends Message
in package
Case is a conditional branch.
Generated from protobuf message exprml.v1.Cases.Case
Table of Contents
Methods
- __construct() : mixed
- Constructor.
- clearOtherwise() : mixed
- clearThen() : mixed
- clearWhen() : mixed
- getIsOtherwise() : bool
- Whether the case is otherwise.
- getOtherwise() : Expr|null
- Otherwise is the body of the case.
- getThen() : Expr|null
- Then is the body of the case.
- getWhen() : Expr|null
- When is the condition of the case.
- hasOtherwise() : mixed
- hasThen() : mixed
- hasWhen() : mixed
- setIsOtherwise() : $this
- Whether the case is otherwise.
- setOtherwise() : $this
- Otherwise is the body of the case.
- setThen() : $this
- Then is the body of the case.
- setWhen() : $this
- When is the condition of the case.
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 bool $is_otherwise Whether the case is otherwise. @type \Exprml\PB\Exprml\V1\Expr $when When is the condition of the case. @type \Exprml\PB\Exprml\V1\Expr $then Then is the body of the case. @type \Exprml\PB\Exprml\V1\Expr $otherwise Otherwise is the body of the case.
}
clearOtherwise()
public
clearOtherwise() : mixed
clearThen()
public
clearThen() : mixed
clearWhen()
public
clearWhen() : mixed
getIsOtherwise()
Whether the case is otherwise.
public
getIsOtherwise() : bool
Generated from protobuf field bool is_otherwise = 1 [json_name = "isOtherwise"];
Return values
boolgetOtherwise()
Otherwise is the body of the case.
public
getOtherwise() : Expr|null
Generated from protobuf field .exprml.v1.Expr otherwise = 4 [json_name = "otherwise"];
Return values
Expr|nullgetThen()
Then is the body of the case.
public
getThen() : Expr|null
Generated from protobuf field .exprml.v1.Expr then = 3 [json_name = "then"];
Return values
Expr|nullgetWhen()
When is the condition of the case.
public
getWhen() : Expr|null
Generated from protobuf field .exprml.v1.Expr when = 2 [json_name = "when"];
Return values
Expr|nullhasOtherwise()
public
hasOtherwise() : mixed
hasThen()
public
hasThen() : mixed
hasWhen()
public
hasWhen() : mixed
setIsOtherwise()
Whether the case is otherwise.
public
setIsOtherwise(bool $var) : $this
Generated from protobuf field bool is_otherwise = 1 [json_name = "isOtherwise"];
Parameters
- $var : bool
Return values
$thissetOtherwise()
Otherwise is the body of the case.
public
setOtherwise(Expr $var) : $this
Generated from protobuf field .exprml.v1.Expr otherwise = 4 [json_name = "otherwise"];
Parameters
- $var : Expr
Return values
$thissetThen()
Then is the body of the case.
public
setThen(Expr $var) : $this
Generated from protobuf field .exprml.v1.Expr then = 3 [json_name = "then"];
Parameters
- $var : Expr
Return values
$thissetWhen()
When is the condition of the case.
public
setWhen(Expr $var) : $this
Generated from protobuf field .exprml.v1.Expr when = 2 [json_name = "when"];
Parameters
- $var : Expr