Commodity
extends Message
in package
Generated from protobuf message <code>agrboards.boards.Commodity</code>
Table of Contents
Properties
- $name : mixed
- Example: commodities/123foo
- $prices : mixed
- List of prices. Without the average value which is automatically generated when rendering.
Methods
- __construct() : mixed
- Constructor.
- getName() : string
- Example: commodities/123foo
- getPrices() : RepeatedField
- List of prices. Without the average value which is automatically generated when rendering.
- setName() : $this
- Example: commodities/123foo
- setPrices() : $this
- List of prices. Without the average value which is automatically generated when rendering.
Properties
$name
Example: commodities/123foo
protected
mixed
$name
= ''
Generated from protobuf field string name = 1;
$prices
List of prices. Without the average value which is automatically generated when rendering.
private
mixed
$prices
If the list is not ordered it will be sorted on the server.
Generated from protobuf field repeated int32 prices = 2;
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 string $name Example: commodities/123foo @type int[]|\Google\Protobuf\Internal\RepeatedField $prices List of prices. Without the average value which is automatically generated when rendering. If the list is not ordered it will be sorted on the server.}
getName()
Example: commodities/123foo
public
getName() : string
Generated from protobuf field string name = 1;
Return values
stringgetPrices()
List of prices. Without the average value which is automatically generated when rendering.
public
getPrices() : RepeatedField
If the list is not ordered it will be sorted on the server.
Generated from protobuf field repeated int32 prices = 2;
Return values
RepeatedFieldsetName()
Example: commodities/123foo
public
setName(string $var) : $this
Generated from protobuf field string name = 1;
Parameters
- $var : string
Return values
$thissetPrices()
List of prices. Without the average value which is automatically generated when rendering.
public
setPrices(array<string|int, int>|RepeatedField $var) : $this
If the list is not ordered it will be sorted on the server.
Generated from protobuf field repeated int32 prices = 2;
Parameters
- $var : array<string|int, int>|RepeatedField