Board
extends Message
in package
Generated from protobuf message <code>agrboards.boards.Board</code>
Table of Contents
Properties
- $date : mixed
- Generated from protobuf field <code>.libs.datetime.Date date = 2;</code>
- $name : mixed
- Example: distributor/123foo/boards/2020-01-02
- $commodities : mixed
- Generated from protobuf field <code>repeated .agrboards.boards.Commodity commodities = 3;</code>
Methods
- __construct() : mixed
- Constructor.
- clearDate() : mixed
- getCommodities() : RepeatedField
- Generated from protobuf field <code>repeated .agrboards.boards.Commodity commodities = 3;</code>
- getDate() : Date|null
- Generated from protobuf field <code>.libs.datetime.Date date = 2;</code>
- getName() : string
- Example: distributor/123foo/boards/2020-01-02
- hasDate() : mixed
- setCommodities() : $this
- Generated from protobuf field <code>repeated .agrboards.boards.Commodity commodities = 3;</code>
- setDate() : $this
- Generated from protobuf field <code>.libs.datetime.Date date = 2;</code>
- setName() : $this
- Example: distributor/123foo/boards/2020-01-02
Properties
$date
Generated from protobuf field <code>.libs.datetime.Date date = 2;</code>
protected
mixed
$date
= null
$name
Example: distributor/123foo/boards/2020-01-02
protected
mixed
$name
= ''
Generated from protobuf field string name = 1;
$commodities
Generated from protobuf field <code>repeated .agrboards.boards.Commodity commodities = 3;</code>
private
mixed
$commodities
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: distributor/123foo/boards/2020-01-02 @type \Libs\Datetime\Date $date @type \Agrboards\Boards\Commodity[]|\Google\Protobuf\Internal\RepeatedField $commodities}
clearDate()
public
clearDate() : mixed
getCommodities()
Generated from protobuf field <code>repeated .agrboards.boards.Commodity commodities = 3;</code>
public
getCommodities() : RepeatedField
Return values
RepeatedFieldgetDate()
Generated from protobuf field <code>.libs.datetime.Date date = 2;</code>
public
getDate() : Date|null
Return values
Date|nullgetName()
Example: distributor/123foo/boards/2020-01-02
public
getName() : string
Generated from protobuf field string name = 1;
Return values
stringhasDate()
public
hasDate() : mixed
setCommodities()
Generated from protobuf field <code>repeated .agrboards.boards.Commodity commodities = 3;</code>
public
setCommodities(array<string|int, Commodity>|RepeatedField $var) : $this
Parameters
- $var : array<string|int, Commodity>|RepeatedField
Return values
$thissetDate()
Generated from protobuf field <code>.libs.datetime.Date date = 2;</code>
public
setDate(Date $var) : $this
Parameters
- $var : Date
Return values
$thissetName()
Example: distributor/123foo/boards/2020-01-02
public
setName(string $var) : $this
Generated from protobuf field string name = 1;
Parameters
- $var : string