Documentation

OpUnary extends Message
in package

OpUnary is an OpUnary expression.

Generated from protobuf message exprml.v1.OpUnary

Table of Contents

Methods

__construct()  : mixed
Constructor.
clearOperand()  : mixed
getOp()  : int
Op is the operator.
getOperand()  : Expr|null
Operand is the operand.
hasOperand()  : mixed
setOp()  : $this
Op is the operator.
setOperand()  : $this
Operand is the operand.

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 $op
      Op is the operator.
@type \Exprml\PB\Exprml\V1\Expr $operand
      Operand is the operand.

}

clearOperand()

public clearOperand() : mixed

getOp()

Op is the operator.

public getOp() : int

Generated from protobuf field .exprml.v1.OpUnary.Op op = 1 [json_name = "op"];

Return values
int

getOperand()

Operand is the operand.

public getOperand() : Expr|null

Generated from protobuf field .exprml.v1.Expr operand = 2 [json_name = "operand"];

Return values
Expr|null

hasOperand()

public hasOperand() : mixed

setOp()

Op is the operator.

public setOp(int $var) : $this

Generated from protobuf field .exprml.v1.OpUnary.Op op = 1 [json_name = "op"];

Parameters
$var : int
Return values
$this

setOperand()

Operand is the operand.

public setOperand(Expr $var) : $this

Generated from protobuf field .exprml.v1.Expr operand = 2 [json_name = "operand"];

Parameters
$var : Expr
Return values
$this

        
On this page

Search results