Documentation

Pos extends Message
in package

Pos represents a position in the path.

Generated from protobuf message exprml.v1.Expr.Path.Pos

Table of Contents

Methods

__construct()  : mixed
Constructor.
getIndex()  : int|string
Index is the index of the position.
getKey()  : string
Key is the key of the position.
setIndex()  : $this
Index is the index of the position.
setKey()  : $this
Key is the key of the position.

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|string $index
      Index is the index of the position.
@type string $key
      Key is the key of the position.

}

getIndex()

Index is the index of the position.

public getIndex() : int|string

Generated from protobuf field int64 index = 1 [json_name = "index"];

Return values
int|string

getKey()

Key is the key of the position.

public getKey() : string

Generated from protobuf field string key = 2 [json_name = "key"];

Return values
string

setIndex()

Index is the index of the position.

public setIndex(int|string $var) : $this

Generated from protobuf field int64 index = 1 [json_name = "index"];

Parameters
$var : int|string
Return values
$this

setKey()

Key is the key of the position.

public setKey(string $var) : $this

Generated from protobuf field string key = 2 [json_name = "key"];

Parameters
$var : string
Return values
$this

        
On this page

Search results